Closed francisvm closed 8 months ago
@llvm/issue-subscribers-backend-risc-v
Author: Visoiu Mistrih Francis (francisvm)
Did #79535 fix this, or are there still other related issues?
Should be good for now! Probably still good to create proper slots in MFI later, but at least MIR testing works.
MIR printing is broken when trying to serialize the output after PrologEpilogInserter (
-run-pass=prologepilog
or-stop-after
).llc -mtriple=riscv32 -mattr=+zcmp -x mir -run-pass=prologepilog -verify-machineinstrs -o -
zcmp-cm-push-pop.mir:Zcmp/save-restore-libcalls have pre-defined frame indices for the saved registers but they're never allocated in
MachineFrameInfo
. When MIRPrinting occurs, the index found in the entries inMachineFrameInfo::CalleeSavedInfos
is not to be found inMachineFrameInfo::Objects
, andisDeadObjectIndex
asserts.We should create proper (fixed?) slots in MFI in the future to avoid inconsistencies there, since we don't really care about the frame index to be fixed, but the location on the stack.