[llvm] [SelectionDAG][RISCV] (add (vscale * C0), (vscale * C1)) to (vscale * (C0 + C1)) in getNode. (PR #144565)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 10:46:14 PDT 2025


================
@@ -296,8 +294,9 @@ define <vscale x 16 x i8> @insert_nxv16i8_nxv1i8_2(<vscale x 16 x i8> %vec, <vsc
 ; CHECK:       # %bb.0:
 ; CHECK-NEXT:    csrr a0, vlenb
 ; CHECK-NEXT:    srli a1, a0, 3
+; CHECK-NEXT:    slli a2, a1, 1
----------------
topperc wrote:

I think #144571 will fix it, but that has other effects so I didn't want to make the test diffs in this patch larger.

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


More information about the llvm-commits mailing list