[llvm] [AArch64][SVE] Pair SVE fill/spill into LDP/STP with -msve-vector-bits=128. (PR #134068)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 03:06:19 PDT 2025


================
@@ -2840,6 +2883,9 @@ bool AArch64LoadStoreOpt::optimizeBlock(MachineBasicBlock &MBB,
     updateDefinedRegisters(*MBBI, DefinedInBB, TRI);
     if (TII->isPairableLdStInst(*MBBI) && tryToPairLdStInst(MBBI))
       Modified = true;
+    else if (CanPairFillSpill && isPairableFillSpillInst(*MBBI) &&
+             tryToPairLdStInst(MBBI))
+      Modified = true;
----------------
rj-jesus wrote:

I've moved these checks into `isPairableLdStInst` and `isCandidateToMergeOrPair` - please let me know what you think of the new approach, otherwise I'm happy to revert it. :)

https://github.com/llvm/llvm-project/pull/134068


More information about the llvm-commits mailing list