[llvm] [RISCV][VLOPT] Add getOperandInfo for Vector Store Whole Register Instructions (PR #119570)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 09:42:44 PST 2024


================
@@ -483,3 +483,34 @@ body: |
     %x:vr = PseudoVADD_VV_MF4 $noreg, $noreg, $noreg, -1, 3 /* e8 */, 0
     %y:vr = PseudoVNSRL_WV_MF2 $noreg, $noreg, %x, 1, 3 /* e8 */, 0
 ...
+---
+name: vsNr_v
+body: |
+  bb.0:
+    ; CHECK-LABEL: name: vsNr_v
+    ; CHECK: %x:vr = PseudoVADD_VV_M1 $noreg, $noreg, $noreg, -1, 3 /* e8 */, 0 /* tu, mu */
+    ; CHECK-NEXT: VS1R_V %x, $noreg
+    %x:vr = PseudoVADD_VV_M1 $noreg, $noreg, $noreg, -1, 3 /* e8 */, 0
+    VS1R_V %x, $noreg
+...
+# FIXME: We can optimize this
----------------
topperc wrote:

What would the optimization be? We didn't optimize the vsNr_v case.

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


More information about the llvm-commits mailing list