llvm-project
6fb7cdff - [X86] Recognize POP/ADD/SUB modifying rsp in getSPAdjust. (#114265)

Commit
321 days ago
[X86] Recognize POP/ADD/SUB modifying rsp in getSPAdjust. (#114265) This code assumed only PUSHes would appear in call sequences. However, if calls require frame-pointer/base-pointer spills, only the PUSH operations inserted by spillFPBP will be recognized, and the adjustments to frame object offsets in prologepilog will be incorrect. This change correctly reports the SP adjustment for POP and ADD/SUB to rsp, and an assertion for unrecognized instructions that modify rsp.
Author
Parents
Loading