[llvm] eff0d81 - [VPlan] Adjust original position of convertToConcreteRecipes.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 13:53:55 PST 2024
Author: Florian Hahn
Date: 2024-12-08T21:52:51Z
New Revision: eff0d8103c5e0db938550dd6e18230ea8ed9ff4b
URL: https://github.com/llvm/llvm-project/commit/eff0d8103c5e0db938550dd6e18230ea8ed9ff4b
DIFF: https://github.com/llvm/llvm-project/commit/eff0d8103c5e0db938550dd6e18230ea8ed9ff4b.diff
LOG: [VPlan] Adjust original position of convertToConcreteRecipes.
Restore the original position of the call before afef545efab77a8
to fix a number of crashes.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 65a0f80fa4d659..37118702762956 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7677,7 +7677,6 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
VPlanTransforms::unrollByUF(BestVPlan, BestUF,
OrigLoop->getHeader()->getContext());
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
- VPlanTransforms::convertToConcreteRecipes(BestVPlan);
// Perform the actual loop transformation.
VPTransformState State(&TTI, BestVF, BestUF, LI, DT, ILV.Builder, &ILV,
@@ -7741,6 +7740,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
BestVPlan.prepareToExecute(ILV.getTripCount(),
ILV.getOrCreateVectorTripCount(nullptr),
CanonicalIVStartValue, State);
+ VPlanTransforms::convertToConcreteRecipes(BestVPlan);
BestVPlan.execute(&State);
More information about the llvm-commits
mailing list