We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3a83eb + ac763c1 commit 86e6aa8Copy full SHA for 86e6aa8
llvm/lib/CodeGen/Yk/FixStackmapsSpillReloads.cpp
@@ -190,6 +190,12 @@ bool FixStackmapsSpillReloads::runOnMachineFunction(MachineFunction &MF) {
190
}
191
MOI++;
192
193
+ MachineOperand *Last = NewMI->operands_end() - 1;
194
+ if (!Last->isReg() || !Last->isImplicit()) {
195
+ // Unless the last operand is an implicit register, the last operand
196
+ // needs to be `NextLive` due to the way stackmaps are parsed.
197
+ MIB.addImm(StackMaps::NextLive);
198
+ }
199
// Insert the new stackmap instruction just after the last call.
200
MI.getParent()->insertAfter(LastCall, NewMI);
201
// Remember the old stackmap instruction for deletion later.
0 commit comments