[llvm] [RISCV][VLOPT] Make sure all instructions in isSupportedInstr has test coverage (PR #119412)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 12:42:32 PST 2024


================
@@ -1591,6 +1948,28 @@ define <vscale x 4 x i32> @vmv_v_i(<vscale x 4 x i32> %a, i32 %x, iXLen %vl) {
   ret <vscale x 4 x i32> %2
 }
 
+; The vmv.v.v is optimized away if we use a vadd as the user.
+define <vscale x 1 x i8> @vmv_v_v(<vscale x 1 x i8> %a, i8 %b, <vscale x 1 x i8> %c, <vscale x 1 x i1> %m, iXLen %vl) {
----------------
topperc wrote:

vmv_v_x?

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


More information about the llvm-commits mailing list