Skip to content

Commit

Permalink
Make it not a safepoint for codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Mar 11, 2024
1 parent 6c28030 commit 0a19a62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/llvm-late-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ State LateLowerGCFrame::LocalScan(Function &F) {
callee == pgcstack_getter || callee->getName() == XSTR(jl_egal__unboxed) ||
callee->getName() == XSTR(jl_lock_value) || callee->getName() == XSTR(jl_unlock_value) ||
callee->getName() == XSTR(jl_lock_field) || callee->getName() == XSTR(jl_unlock_field) ||
callee == write_barrier_func || callee == gc_loaded_func ||
callee == write_barrier_func || callee == gc_loaded_func || callee = pop_handler_noexcept_func ||
callee->getName() == "memcmp") {
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/llvm-pass-helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ JuliaPassContext::JuliaPassContext()
pgcstack_getter(nullptr), adoptthread_func(nullptr), gc_flush_func(nullptr),
gc_preserve_begin_func(nullptr), gc_preserve_end_func(nullptr),
pointer_from_objref_func(nullptr), gc_loaded_func(nullptr), alloc_obj_func(nullptr),
typeof_func(nullptr), write_barrier_func(nullptr), pop_handler_noexcept(nullptr),
typeof_func(nullptr), write_barrier_func(nullptr), pop_handler_noexcept_func(nullptr),
call_func(nullptr), call2_func(nullptr), call3_func(nullptr), module(nullptr)
{
}
Expand All @@ -53,7 +53,7 @@ void JuliaPassContext::initFunctions(Module &M)
typeof_func = M.getFunction("julia.typeof");
write_barrier_func = M.getFunction("julia.write_barrier");
alloc_obj_func = M.getFunction("julia.gc_alloc_obj");
pop_handler_noexcept = M.getFunction(XSTR(jl_pop_handler_noexcept));
pop_handler_noexcept_func = M.getFunction(XSTR(jl_pop_handler_noexcept));
call_func = M.getFunction("julia.call");
call2_func = M.getFunction("julia.call2");
call3_func = M.getFunction("julia.call3");
Expand Down
2 changes: 1 addition & 1 deletion src/llvm-pass-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct JuliaPassContext {
llvm::Function *alloc_obj_func;
llvm::Function *typeof_func;
llvm::Function *write_barrier_func;
llvm::Function *pop_handler_noexcept;
llvm::Function *pop_handler_noexcept_func;
llvm::Function *call_func;
llvm::Function *call2_func;
llvm::Function *call3_func;
Expand Down

0 comments on commit 0a19a62

Please sign in to comment.