llvm-project
35bf925f - [RISCV] Delete dead COPYs to vmv0 during vmv0 elimination

Commit
335 days ago
[RISCV] Delete dead COPYs to vmv0 during vmv0 elimination This fixes a crash reported at https://github.com/llvm/llvm-project/pull/126850#issuecomment-2685166388, where we may leave around a COPY to vmv0 after peeking through it. Even though the COPY is dead, there's no pass between vmv0 elimination and regalloc that will delete it so regalloc will try to allocate something for it. The test showcasing this is added in vmv0-elimination.mir. Removing the dead COPY results in changes in spills in the >= LMUL 16 VP tests, but it's worth noting that these tests are very noisy and not representative of real world code.
Author
Committer
Parents
Loading