From 9c328373337d45de1cf63d94451ade1771910c6f Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Wed, 4 Oct 2023 09:25:31 -0300 Subject: [PATCH] Fix typo --- src/allocfunc.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allocfunc.jl b/src/allocfunc.jl index 1467905..344b0d5 100644 --- a/src/allocfunc.jl +++ b/src/allocfunc.jl @@ -18,7 +18,7 @@ const known_nonalloc_funcs = ( function is_alloc_function(name) maybe_alloc = occursin(r"(ijl_|jl_).*", name) if maybe_alloc - any(x->contains(str, x), known_nonalloc_funcs) && return false + any(x->contains(name, x), known_nonalloc_funcs) && return false return true end return false @@ -107,7 +107,7 @@ function rename_ir!(job, inst::LLVM.CallInst) LLVM.API.LLVMSetOperand(inst, LLVM.API.LLVMGetNumOperands(inst)-1, lfn) end end - + if isa(dest, ConstantExpr) # Enzyme should be able to handle these # detect calls to literal pointers and replace with function name, if possible