Skip to content

Commit

Permalink
[TaskSimplify] Prevent tapir.runtime.start calls from getting hoisted…
Browse files Browse the repository at this point in the history
… out of taskframes. Allowing such hoisting can cause Tapir lowering to subsequently crash.
  • Loading branch information
neboat committed Sep 16, 2024
1 parent 414850d commit 174aace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Utils/TaskSimplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static bool skipForHoisting(const Instruction *I,
SmallPtrSetImpl<const Instruction *> &NotHoisted) {
if (I->isTerminator() || isTapirIntrinsic(Intrinsic::taskframe_create, I) ||
isTapirIntrinsic(Intrinsic::syncregion_start, I) ||
isTapirIntrinsic(Intrinsic::tapir_runtime_start, I) ||
isa<AllocaInst>(I))
return true;

Expand Down

0 comments on commit 174aace

Please sign in to comment.