[llvm] [RISCV][CFI] Emit cfi_offset for every callee-saved vector registers (PR #100455)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 21:53:33 PDT 2024
================
@@ -1554,12 +1583,15 @@ void RISCVFrameLowering::emitCalleeSavedRVVPrologCFI(
// Insert the spill to the stack frame.
int FI = CS.getFrameIdx();
if (FI >= 0 && MFI.getStackID(FI) == TargetStackID::ScalableVector) {
- unsigned CFIIndex = MF->addFrameInst(
- createDefCFAOffset(*STI.getRegisterInfo(), CS.getReg(), -FixedSize,
- MFI.getObjectOffset(FI) / 8));
- BuildMI(MBB, MI, DL, TII.get(TargetOpcode::CFI_INSTRUCTION))
- .addCFIIndex(CFIIndex)
- .setMIFlag(MachineInstr::FrameSetup);
+ auto VRegLMULPair = getCSBaseVRegLMULPair(CS.getReg());
----------------
4vtomat wrote:
Yes, good idea, thanks!
https://github.com/llvm/llvm-project/pull/100455
More information about the llvm-commits
mailing list