[llvm] [RISCV] Use QC_E_ADDI while eliminating the frameindex (PR #139515)
Sudharsan Veeravalli via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 07:52:24 PDT 2025
================
@@ -288,6 +288,17 @@ void RISCVRegisterInfo::adjustReg(MachineBasicBlock &MBB,
return;
}
+ // Use the QC_E_ADDI instruction from the Xqcilia extension that can take a
+ // signed 26-bit immediate. Avoid anything which can be done with a single lui
+ // as it might be compressible.
----------------
svs-quic wrote:
Yeah you're right. Brain fade. I've tried to address this by not using the QC_E_ADDI instruction when both lui and add are compressible.
https://github.com/llvm/llvm-project/pull/139515
More information about the llvm-commits
mailing list