[llvm] [RISCV] Don't process scalar instructions in VLOptimizer. NFC (PR #225656)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 03:01:13 PDT 2026


================
@@ -95,6 +95,14 @@ class RISCVVLOptimizerImpl {
              RISCVRegisterInfo::isRVVRegClass(MRI->getRegClass(MO.getReg()));
     });
   }
+
+  /// \returns all vector virtual registers that \p MI defines.
+  auto virtual_vec_defs(const MachineInstr &MI) const {
----------------
wangpc-pp wrote:

The naming is weird but I can understand it is to match `virtual_vec_uses`.

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


More information about the llvm-commits mailing list