The LivePhysRegs calculated in order to find a scratch register in the epilogue code wrongly uses 'LiveIns'. Instead, it should use the 'Liveout' sets.
For the liveness, also considering the operands of the terminator (return) instruction which is the insertion point for the scratch-exec-copy instruction.
Details
Details
- Reviewers
arsenm
Diff Detail
Diff Detail
Event Timeline
Comment Actions
r364470
test/CodeGen/AMDGPU/callee-special-input-sgprs.ll | ||
---|---|---|
488 | I fixed this to add the new scratch use and keep the -NOT |
Why did this change?