[llvm] [RISCV] Select mask operands as virtual registers and eliminate vmv0 (PR #125026)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 00:30:16 PST 2025


================
@@ -599,6 +602,10 @@ void RISCVPassConfig::addMachineSSAOptimization() {
 }
 
 void RISCVPassConfig::addPreRegAlloc() {
+  // TODO: Move this as late as possible before regalloc
+  if (TM->getOptLevel() == CodeGenOptLevel::None)
----------------
lukel97 wrote:

At -O0 we don't run `addMachineSSAOptimization` so we still need to eliminate them here

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


More information about the llvm-commits mailing list