Skip to content
Unverified Commit 69a661cb authored by Visoiu Mistrih Francis's avatar Visoiu Mistrih Francis Committed by GitHub
Browse files

[RISCV] Remove CalleeSavedInfo for Zcmp/save-restore-libcalls registers (#79535)

Registers that are pushed/popped by Zcmp or libcalls have pre-defined
frame indices that are never allocated in MachineFrameInfo. They're
being used throughout PEI, but the rest of codegen doesn't work that way
and expects each frame index to be a valid index in MFI.

This patch keeps it local to PEI and removes them from the
CalleeSavedInfo list at the end of the pass.

Before this pass, any MIR testing post-PEI is broken and asserts (see
issue #79491).
parent 1aafe760
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment