[llvm] [RISCV] Remove vmv.s.x and vmv.x.s lmul pseudo variants (PR #71501)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 21:46:21 PST 2023


================
@@ -7421,10 +7420,15 @@ foreach fvti = AllFloatVectors in {
                (fvti.Scalar fvti.ScalarRegClass:$rs2),
                GPR:$vl, fvti.Log2SEW)>;
 
+    defvar isGroup = !isa<GroupVTypeInfo>(fvti);
+    defvar merge = !if(isGroup,
+                       (!cast<GroupVTypeInfo>(fvti).VectorM1
+                          (EXTRACT_SUBREG $rs1, sub_vrm1_0)),
+                       (fvti.Vector $rs1));
+    defvar pseudo = (PseudoVMV_S_X merge, (XLenVT X0), GPR:$vl, fvti.Log2SEW);
----------------
wangpc-pp wrote:

How about some meaningful names like `vmv`, `pseudoVMV`?

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


More information about the llvm-commits mailing list