[llvm] [RISCV][Peephole] Checking regclass compatibility in VMV (PR #138844)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 03:15:04 PDT 2025


================
@@ -89,3 +89,41 @@ body: |
     %passthru:vr = COPY $v8
     %x:vr = PseudoVADD_VV_MF4 %passthru, $noreg, $noreg, 4, 4 /* e16 */, 0 /* tu, mu */
     %y:vr = PseudoVMV_V_V_MF8 %passthru, %x, 4, 3 /* e8 */, 0 /* tu, mu */
+...
+---
+name:            diff_regclass
+body:             |
+  bb.0.entry:
+    liveins: $v8
----------------
lukel97 wrote:

If you replace %4:vmv0 with $noreg then I think you can drop the livein

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


More information about the llvm-commits mailing list