llvm-project
137d8e68 - [X86] Fix eliminateFrameIndex dropping existing index register for huge frame offsets

Commit
17 days ago
[X86] Fix eliminateFrameIndex dropping existing index register for huge frame offsets When the frame offset does not fit in disp32 and the address mode already uses an index register, the register-scavenging path overwrote the index operand with the scratch register, silently dropping the index from the effective address (and applying the stale scale to the frame offset). Fold the offset into the base register with an LEA in this case instead. Fixes #213960 Assisted-by: Cursor Reviewers: RKSimon, qcolombet Pull Request: https://github.com/llvm/llvm-project/pull/221016
Author
Parents
Loading