[PATCH] D156986: [PEI] Remove support for register scavenging during forwards frame index elimination
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 01:03:01 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG25ec2673feea: [PEI] Remove support for register scavenging during forwards frame index… (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156986/new/
https://reviews.llvm.org/D156986
Files:
llvm/docs/ReleaseNotes.rst
llvm/lib/CodeGen/PrologEpilogInserter.cpp
Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
===================================================================
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -1531,9 +1531,6 @@
const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering();
- if (RS && FrameIndexEliminationScavenging)
- RS->enterBasicBlock(*BB);
-
bool InsideCallSequence = false;
for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); ) {
@@ -1567,8 +1564,7 @@
// If this instruction has a FrameIndex operand, we need to
// use that target machine register info object to eliminate
// it.
- TRI.eliminateFrameIndex(MI, SPAdj, i,
- FrameIndexEliminationScavenging ? RS : nullptr);
+ TRI.eliminateFrameIndex(MI, SPAdj, i);
// Reset the iterator if we were at the beginning of the BB.
if (AtBeginning) {
@@ -1590,10 +1586,7 @@
if (DidFinishLoop && InsideCallSequence)
SPAdj += TII.getSPAdjust(MI);
- if (DoIncr && I != BB->end()) ++I;
-
- // Update register states.
- if (RS && FrameIndexEliminationScavenging && DidFinishLoop)
- RS->forward(MI);
+ if (DoIncr && I != BB->end())
+ ++I;
}
}
Index: llvm/docs/ReleaseNotes.rst
===================================================================
--- llvm/docs/ReleaseNotes.rst
+++ llvm/docs/ReleaseNotes.rst
@@ -123,6 +123,10 @@
Changes to the CodeGen infrastructure
-------------------------------------
+* ``PrologEpilogInserter`` no longer supports register scavenging
+ during forwards frame index elimination. Targets should use
+ backwards frame index elimination instead.
+
Changes to the Metadata Info
---------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156986.547130.patch
Type: text/x-patch
Size: 1845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230804/84a9fb46/attachment.bin>
More information about the llvm-commits
mailing list