[llvm] [AArch64][GlobalISel] Add support for pre-indexed loads/stores. (PR #70185)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 02:35:09 PDT 2023
================
@@ -1141,11 +1141,29 @@ bool CombinerHelper::findPreIndexCandidate(GLoadStore &LdSt, Register &Addr,
return false;
}
+ // Avoid increasing cross-block register pressure.
+ for (auto &AddrUse : MRI.use_nodbg_instructions(Addr)) {
+ if (AddrUse.getParent() != LdSt.getParent())
+ return false;
+ }
----------------
tschuett wrote:
Are you sure about the braces?
https://github.com/llvm/llvm-project/pull/70185
More information about the llvm-commits
mailing list