Files
clang-p2996/llvm/test/CodeGen/RISCV/stack-realignment.ll
dlav-sc 7be2ce7312 [RISCV] fix SP recovery in a function epilogue (#110809)
Currently, in the cases when fp register is presented and sp register is
adjusted at the second time, sp recovery in a function epilogue isn't
performed in the best way, for example:
```
lui a0, 2
sub sp, s0, a0
addi a0, a0, -2044
add sp, sp, a0
```

This patch improves sp register recovery in such cases and the code
snippet above becomes:
```
addi sp, s0, -2044
```
2024-10-04 12:22:11 +03:00

44 KiB