[llvm] [RISCV] Fix double counting CSRs with Zcmp in RISCVFrameLowering::getFrameIndexReference. (PR #117207)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 11:09:35 PST 2024


================
@@ -1205,7 +1205,6 @@ RISCVFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
     // alignment padding.
     int ScalarLocalVarSize = MFI.getStackSize() -
                              RVFI->getCalleeSavedStackSize() -
-                             RVFI->getRVPushStackSize() -
----------------
topperc wrote:

Probably. The bug was found by a user on an older release of our internal compiler that didn't have emitCalleeSavedRVVPrologCFI.

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


More information about the llvm-commits mailing list