[llvm] [VPlan] Expand VPWidenIntOrFpInductionRecipe into separate recipes (PR #118638)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 02:02:27 PST 2025


================
@@ -261,6 +261,14 @@ class VPBuilder {
         FPBinOp ? FPBinOp->getFastMathFlags() : FastMathFlags()));
   }
 
+  VPInstruction *createSplat(VPValue *Val) {
+    return tryInsertInstruction(new VPInstruction(VPInstruction::Splat, {Val}));
+  }
+
+  VPStepVectorRecipe *createStepVector(Type *Ty) {
----------------
LiqinWeng wrote:

Is it possible to use VPInstruction::Step instead of VPStepVectorRecipe?

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


More information about the llvm-commits mailing list