[llvm] [RISCV] Add TunePreferAscendingLoadStore for SpacemiT X60 LD/ST fusion (PR #186967)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 19:51:45 PDT 2026
================
@@ -975,7 +975,7 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
// FIXME: assumes exactly one instruction is used to restore each
// callee-saved register.
MBBI = std::prev(MBBI, getRVVCalleeSavedInfo(MF, CSI).size() +
- getUnmanagedCSI(MF, CSI, ReverseCSRSpill).size());
+ getUnmanagedCSI(MF, CSI, PreferAscendingLS).size());
----------------
lenary wrote:
This (and some places below) are just using this for the size, rather than the contents. Maybe we should be doing something to avoid these repeated calls? I don't know.
The changes aren't wrong, it's just something I noticed.
https://github.com/llvm/llvm-project/pull/186967
More information about the llvm-commits
mailing list