[llvm] [RISCV] Run DeadMachineInstructionElim after regalloc (PR #90598)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 04:42:21 PDT 2024


================
@@ -553,6 +553,8 @@ void RISCVPassConfig::addPostRegAlloc() {
   if (TM->getOptLevel() != CodeGenOptLevel::None &&
       EnableRedundantCopyElimination)
     addPass(createRISCVRedundantCopyEliminationPass());
+  // RISCVInsertVSETVLI may leave some defs of AVLs dead, so remove them.
+  addPass(&DeadMachineInstructionElimID);
----------------
dtcxzyw wrote:

Please update O3-pipeline.ll

https://github.com/llvm/llvm-project/pull/90598


More information about the llvm-commits mailing list