[llvm] [VPlan] Hook IR blocks into VPlan during skeleton creation (NFC) (PR #114292)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 15:43:57 PST 2024
================
@@ -7643,20 +7671,15 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
OrigLoop->getHeader()->getContext());
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
- LLVM_DEBUG(dbgs() << "Executing best plan with VF=" << BestVF
- << ", UF=" << BestUF << '\n');
- BestVPlan.setName("Final VPlan");
- LLVM_DEBUG(BestVPlan.dump());
-
// Perform the actual loop transformation.
VPTransformState State(BestVF, BestUF, LI, DT, ILV.Builder, &ILV, &BestVPlan);
// 0. Generate SCEV-dependent code into the preheader, including TripCount,
// before making any changes to the CFG.
- if (!BestVPlan.getPreheader()->empty()) {
+ if (!BestVPlan.getEntry()->empty()) {
----------------
ayalz wrote:
Note: worth renaming getPreheader() <--> getEntry() separately (?)
https://github.com/llvm/llvm-project/pull/114292
More information about the llvm-commits
mailing list