[llvm] [AArch64][SVE] Pair SVE fill/spill into LDP/STP with -msve-vector-bits=128. (PR #134068)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 04:43:34 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;
----------------
paulwalker-arm wrote:
It is necessary to have a separate path for SVE rather than extending isPairableLdStInst? I can see isPairableLdStInst is also used to group related instructions together, which is something we might want in the future, assuming it doesn't already come for free.
https://github.com/llvm/llvm-project/pull/134068
More information about the llvm-commits
mailing list