[llvm] [RISCV][WIP] Let RA do the CSR saves. (PR #90819)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 14:16:33 PST 2024


================
@@ -1164,6 +1170,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &MF) {
 void PEI::insertPrologEpilogCode(MachineFunction &MF) {
   const TargetFrameLowering &TFI = *MF.getSubtarget().getFrameLowering();
 
+  TFI.emitCFIsForCSRsHandledByRA(MF, RDA);
----------------
michaelmaitland wrote:

Why is the CFIInserter pass needed if we are inserting CFI information here?

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


More information about the llvm-commits mailing list