[llvm] [RISCV][WIP] Let RA do the CSR saves. (PR #90819)
Mikhail Gudim via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 01:54:39 PST 2024
mgudim wrote:
> What is the thought process of taking this approach over modifying the ShrinkWrap pass to communicate the PrologEpilogInserter where to put each callee saved register?
If you ignore the CFI stuff, this approach is much easier, simplifies things (now we don't special treatment of CSRs in RA) and allows for more optimizations than just shrink-wrapping by itself. Essentially, we're exposing the code to save / restore CSRs to all the optimizations after ISel.
https://github.com/llvm/llvm-project/pull/90819
More information about the llvm-commits
mailing list