[llvm] [RISCV][VLOPT] Add support for checkUsers when UserMI is a Single-Width Integer Reduction (PR #120345)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 17:32:15 PST 2025


================
@@ -930,26 +960,64 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
   return true;
 }
 
-bool RISCVVLOptimizer::checkUsers(const MachineOperand *&CommonVL,
-                                  MachineInstr &MI) {
+std::optional<const MachineOperand>
----------------
topperc wrote:

The `const` here doesn't do anything

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


More information about the llvm-commits mailing list