[llvm] [RISCV] Use ForceTailAgnostic for masked vmsbf/vmsif/vmsof.m. (PR #94532)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 20:20:55 PDT 2024


================
@@ -159,9 +159,9 @@ define <vscale x 8 x i1> @intrinsic_vmsbf_mask_m_nxv8i1_nxv8i1(<vscale x 8 x i1>
 ; CHECK:       # %bb.0: # %entry
 ; CHECK-NEXT:    vmv1r.v v10, v0
 ; CHECK-NEXT:    vmv1r.v v0, v9
-; CHECK-NEXT:    vsetvli zero, a0, e8, m1, tu, mu
+; CHECK-NEXT:    vsetvli zero, a0, e8, m1, ta, mu
 ; CHECK-NEXT:    vmsbf.m v10, v8, v0.t
-; CHECK-NEXT:    vmv1r.v v0, v10
+; CHECK-NEXT:    vmv.v.v v0, v10
----------------
topperc wrote:

Probably depends on the microarchitecture. If VL is less than vlmax, then it can save copying some elements on some microarchitectures.

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


More information about the llvm-commits mailing list