[llvm] [RISCV] Reduce spill/reload pairs when Xqcilo extension is enabled (PR #212807)
Sudharsan Veeravalli via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 00:43:56 PDT 2026
================
@@ -615,6 +640,18 @@ bool RISCVRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
// instruction will add 4 to the immediate. If that would overflow 12
// bits, we can't fold the offset.
MI.getOperand(FIOperandNum + 1).ChangeToImmediate(0);
+ } else if (!isInt<12>(Val) && ST.hasVendorXqcilo() &&
+ getXqciloWideOpcode(Opc)) {
----------------
svs-quic wrote:
do we have a test case for this scenario?
https://github.com/llvm/llvm-project/pull/212807
More information about the llvm-commits
mailing list