Patchable statepoint is lowered into sequence of nops, so zeroed call target
should not be on register. It is better to use getTargetConstant instead
of getConstant to select zero constant for call target.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. Looking through the code, it really looks like the null callee value isn't even really being used by the lowering. It's an operand on the MachineInst and thus gets emitted, but in the nop-padding case it doesn't appear to make into the MC Stream. We could, arguably should, restructure to remove it. Your patch appears to be correct, and a step in the right direction, so go for it.