[llvm] [RISCV] Remove last use of @llvm.experimental.vp.splat in RISCVCodeGenPrepare. NFCI (PR #170543)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 12:24:11 PST 2025


================
@@ -271,8 +271,10 @@ bool RISCVCodeGenPrepare::expandVPStrideLoad(IntrinsicInst &II) {
   IRBuilder<> Builder(&II);
   Type *STy = VTy->getElementType();
   Value *Val = Builder.CreateLoad(STy, BasePtr);
-  Value *Res = Builder.CreateIntrinsic(Intrinsic::experimental_vp_splat, {VTy},
-                                       {Val, II.getOperand(2), VL});
+  Value *Res = Builder.CreateIntrinsic(
+      Intrinsic::vp_merge, VTy,
----------------
topperc wrote:

Would it be legal to delete this vp_merge since the false value is poison? Are we creating something fragile here that a future optimization may break?

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


More information about the llvm-commits mailing list