[llvm] [RISCV][GISel] Use maskedValueIsZero in RISCVInstructionSelector::selectZExtBits. (PR #115244)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 16:49:59 PST 2024


================
@@ -261,7 +261,9 @@ RISCVInstructionSelector::selectZExtBits(MachineOperand &Root,
     return {{[=](MachineInstrBuilder &MIB) { MIB.addReg(RegX); }}};
   }
 
-  // TODO: Use computeKnownBits.
+  unsigned Size = MRI->getType(RootReg).getSizeInBits();
----------------
arsenm wrote:

scalar size? 

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


More information about the llvm-commits mailing list