[PATCH] D137574: PEI should be able to use backward walk in replaceFrameIndicesBackward.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 17 08:34:54 PST 2022
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/PrologEpilogInserter.cpp:1497
+
+ bool Removed = TRI.eliminateFrameIndex(MI, SPAdj, i, RS);
+ // Restore to unify logic with a shift back that happens in the end of
----------------
I think handling frame indexes one operand at a time is a broken API for the case where there are multiple. I think interpreting this as "removed" is too aggressive. About about returning true if the instruction was modified in place, in which case we need to resume the loop looking for additional frame indices
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137574/new/
https://reviews.llvm.org/D137574
More information about the llvm-commits
mailing list