[all-commits] [llvm/llvm-project] 69a661: [RISCV] Remove CalleeSavedInfo for Zcmp/save-resto...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Tue Feb 6 18:19:00 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69a661cbae10495e9556d195fa683c0100ae299c
      https://github.com/llvm/llvm-project/commit/69a661cbae10495e9556d195fa683c0100ae299c
  Author: Visoiu Mistrih Francis <890283+francisvm at users.noreply.github.com>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
    M llvm/lib/Target/RISCV/RISCVFrameLowering.h
    A llvm/test/CodeGen/RISCV/zcmp-cm-push-pop.mir

  Log Message:
  -----------
  [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).




More information about the All-commits mailing list