[llvm] [VPlan] Add support for VPWidenIntOrFpInductionRecipe in predicated D… (PR #115274)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 23:27:49 PST 2024


================
@@ -2939,8 +2939,7 @@ LoopVectorizationCostModel::getVectorIntrinsicCost(CallInst *CI,
 
 void InnerLoopVectorizer::fixVectorizedLoop(VPTransformState &State) {
   // Fix widened non-induction PHIs by setting up the PHI operands.
-  if (EnableVPlanNativePath)
-    fixNonInductionPHIs(State);
+  fixNonInductionPHIs(State);
----------------
arcbbb wrote:

This patch lowers `VPWidenIntOrFpInductionRecipe` into `VPWidenPhiRecipe`, therefore it removes the restriction that `VPWidenPhiRecipe` is only supported in the VPlan native path.


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


More information about the llvm-commits mailing list