[llvm] [RISCV] Use two ADDIs to do some stack pointer adjustments for special case (PR #94182)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 09:34:06 PDT 2024
================
@@ -26,9 +26,9 @@ define void @func() {
; RV64I-NEXT: lw t5, %lo(var)(a0)
; RV64I-NEXT: lw t6, %lo(var)(a0)
; RV64I-NEXT: sd s0, 0(sp)
-; RV64I-NEXT: lui s0, 1
-; RV64I-NEXT: add s0, sp, s0
-; RV64I-NEXT: sw a1, 12(s0)
+; RV64I-NEXT: addi s0, sp, 2047
----------------
topperc wrote:
Is this an improvement?
https://github.com/llvm/llvm-project/pull/94182
More information about the llvm-commits
mailing list