This is an archive of the discontinued LLVM Phabricator instance.

MachineCombiner/RISCV: add test for register pressure
AbandonedPublic

Authored by artagnon on May 19 2023, 3:08 AM.

Details

Summary

In preparation for a patch, add a test for MachineCombiner in RISC-V
CodeGen, where the MachineBasicBlock has 33 live registers (just above
the general-purpose register limit of 32 on RISC-V). Since
MachineCombiner kicks in, it leads to increased register pressure,
resulting in spills. The next patch will turn off MachineCombiner for
this case.

Diff Detail

Event Timeline

artagnon created this revision.May 19 2023, 3:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2023, 3:08 AM
artagnon requested review of this revision.May 19 2023, 3:08 AM
artagnon updated this revision to Diff 523749.May 19 2023, 6:37 AM

Replace ugly test with beautiful hand-crafted test using atomics.

artagnon abandoned this revision.Aug 29 2023, 2:36 AM

This test no longer passes.