Skip to content

Commit

Permalink
Undo change in atomic ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 18, 2023
1 parent ac41e0e commit 6cc1542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5959,7 +5959,7 @@ static Function* gen_cfun_wrapper(

Value *world_v = ctx.builder.CreateAlignedLoad(ctx.types().T_size,
prepare_global_in(jl_Module, jlgetworld_global), ctx.types().alignof_ptr);
cast<LoadInst>(world_v)->setOrdering(AtomicOrdering::Monotonic);
cast<LoadInst>(world_v)->setOrdering(AtomicOrdering::Acquire);

Value *age_ok = NULL;
if (calltype) {
Expand Down Expand Up @@ -8340,7 +8340,7 @@ static jl_llvm_functions_t
LoadInst *world = new LoadInst(ctx.types().T_size,
prepare_global_in(jl_Module, jlgetworld_global), Twine(),
/*isVolatile*/false, ctx.types().alignof_ptr, /*insertBefore*/&I);
world->setOrdering(AtomicOrdering::Monotonic);
world->setOrdering(AtomicOrdering::Acquire);
StoreInst *store_world = new StoreInst(world, world_age_field,
/*isVolatile*/false, ctx.types().alignof_ptr, /*insertBefore*/&I);
(void)store_world;
Expand Down

0 comments on commit 6cc1542

Please sign in to comment.