Skip to content

Commit

Permalink
Merge pull request #221 from ptersilie/cp_lives
Browse files Browse the repository at this point in the history
More accurate live variables at the control point.
  • Loading branch information
ltratt authored Jan 8, 2025
2 parents 4b7a0d5 + 69fc9a9 commit db94724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/Transforms/Yk/ControlPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ class YkControlPoint : public ModulePass {

// Get live variables.
LivenessAnalysis LA(Caller);
auto Lives = LA.getLiveVarsBefore(OldCtrlPointCall);
auto Lives =
LA.getLiveVarsBefore(OldCtrlPointCall->getNextNonDebugInstruction());

Value *SMID = ConstantInt::get(Type::getInt64Ty(Context), CPStackMapID);
Value *Shadow = ConstantInt::get(Type::getInt32Ty(Context), CPShadow);
Expand Down

0 comments on commit db94724

Please sign in to comment.