[llvm] [RISCV] Prefer SP over FP for frame index access when offset fits within compressed immediate range. (PR #193962)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 10:09:50 PDT 2026
================
@@ -153,7 +153,7 @@ define void @frame_pointer() "frame-pointer"="all" {
; RV64I-NEXT: addi s0, sp, 2032
; RV64I-NEXT: .cfi_def_cfa s0, 0
; RV64I-NEXT: addi sp, sp, -496
-; RV64I-NEXT: addi a0, s0, -1972
+; RV64I-NEXT: addi a0, sp, 556
----------------
lenary wrote:
Garvit plans to revisit that callback next.
https://github.com/llvm/llvm-project/pull/193962
More information about the llvm-commits
mailing list