[llvm] [RISCV] Prefer SP over FP for frame index access when offset fits within compressed immediate range. (PR #193962)

Garvit Gupta via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 03:45:44 PDT 2026


quic-garvgupt wrote:

> > This enables compression for sp-relative instructions to c.sw/c.lw (RV32)
> > and c.sdsp/c.ldsp (RV64) thereby reducing code size.
> 
> The RV32 instructions should be c.swsp and c.lwsp?

yes, I have updated the comment. Thanks for pointing out!

https://github.com/llvm/llvm-project/pull/193962


More information about the llvm-commits mailing list