aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-08-03 11:02:56 +0100
committerJay Foad <jay.foad@amd.com>2023-08-03 17:20:32 +0100
commit186b2b48e02a6c49795376560ca5ae139d8d9638 (patch)
tree8f65771160eec2dddf6feed3a414cba9232c1e34 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parentdbf798fa646811c03e40c25f9bb3a456267c5a73 (diff)
downloadllvm-186b2b48e02a6c49795376560ca5ae139d8d9638.zip
llvm-186b2b48e02a6c49795376560ca5ae139d8d9638.tar.gz
llvm-186b2b48e02a6c49795376560ca5ae139d8d9638.tar.bz2
[PEI] Switch to backwards frame index elimination by default
Also rename the flag from supportsBackwardScavenger to eliminateFrameIndicesBackwards to reflect what it actually does. X86 is the only target still using forwards frame index elimination. This will not block removing support for forwards register scavenging, because X86 does not use the register scavenger. Differential Revision: https://reviews.llvm.org/D156983
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index d97a0e7..09ad41a 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -277,7 +277,7 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
(RS && !FrameIndexVirtualScavenging) ||
TRI->requiresFrameIndexReplacementScavenging(MF);
- if (TRI->supportsBackwardScavenger())
+ if (TRI->eliminateFrameIndicesBackwards())
replaceFrameIndicesBackward(MF);
else
replaceFrameIndices(MF);