[llvm] [LLVM][AArch64]Use load/store with consecutive registers in SME2 or S… (PR #77665)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 10:49:18 PDT 2024
================
@@ -3072,54 +3094,65 @@ bool AArch64FrameLowering::spillCalleeSavedRegisters(
std::swap(FrameIdxReg1, FrameIdxReg2);
}
- unsigned PairRegs;
- unsigned PnReg;
if (RPI.isPaired() && RPI.isScalable()) {
- PairRegs = AArch64::Z0_Z1 + (RPI.Reg1 - AArch64::Z0);
+ unsigned PairRegs = AArch64::Z0_Z1 + (RPI.Reg1 - AArch64::Z0);
----------------
momchil-velikov wrote:
Suggest moving assignment to `PairRegs` closer to the place of use. A variable does not seem necessary, too.
https://github.com/llvm/llvm-project/pull/77665
More information about the llvm-commits
mailing list