[llvm] [RISCV][VLOPT] Enable the RISCVVLOptimizer by default (PR #119461)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 20:21:19 PST 2024


================
@@ -97,8 +97,9 @@ define <4 x i32> @v4i32_v8i32(<8 x i32>) {
 define <4 x i32> @v4i32_v16i32(<16 x i32>) {
 ; RV32-LABEL: v4i32_v16i32:
 ; RV32:       # %bb.0:
-; RV32-NEXT:    vsetivli zero, 8, e16, m1, ta, ma
+; RV32-NEXT:    vsetivli zero, 2, e16, m1, ta, ma
 ; RV32-NEXT:    vmv.v.i v12, 1
+; RV32-NEXT:    vsetivli zero, 8, e16, m1, ta, ma
 ; RV32-NEXT:    vmv.v.i v14, 6
----------------
lukel97 wrote:

Do we know why only one of the vmv.v.is had their VL reduced here?

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


More information about the llvm-commits mailing list