We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb45fc6 commit 8ecca06Copy full SHA for 8ecca06
llvm/lib/Transforms/Yk/StackMaps.cpp
@@ -73,6 +73,12 @@ class YkStackmaps : public ModulePass {
73
for (Value *A : L)
74
Args.push_back(A);
75
76
+ if (isa<CallInst>(I)) {
77
+ // Insert the stackmap call after (not before) the call instruction, so
78
+ // the offset of the stackmap entry will record the instruction after
79
+ // the call, which is where we want to continue after deoptimisation.
80
+ Bldr.SetInsertPoint(I->getNextNonDebugInstruction());
81
+ }
82
Bldr.CreateCall(SMFunc->getFunctionType(), SMFunc,
83
ArrayRef<Value *>(Args));
84
Count++;
0 commit comments