[llvm] 31a94bd - [VPlan] Rename Preheader -> Entry in createInitialVPlan (NFCI).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 23 12:28:21 PDT 2024
Author: Florian Hahn
Date: 2024-06-23T20:28:15+01:00
New Revision: 31a94bd783ae61f418bd730109992dfb30b70e87
URL: https://github.com/llvm/llvm-project/commit/31a94bd783ae61f418bd730109992dfb30b70e87
DIFF: https://github.com/llvm/llvm-project/commit/31a94bd783ae61f418bd730109992dfb30b70e87.diff
LOG: [VPlan] Rename Preheader -> Entry in createInitialVPlan (NFCI).
Split off from https://github.com/llvm/llvm-project/pull/92651 as
suggested.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 5070950f87c27..af0376dd343d0 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -790,9 +790,9 @@ VPlan::~VPlan() {
VPlanPtr VPlan::createInitialVPlan(const SCEV *TripCount, ScalarEvolution &SE,
BasicBlock *PH) {
- VPIRBasicBlock *Preheader = new VPIRBasicBlock(PH);
+ VPIRBasicBlock *Entry = new VPIRBasicBlock(PH);
VPBasicBlock *VecPreheader = new VPBasicBlock("vector.ph");
- auto Plan = std::make_unique<VPlan>(Preheader, VecPreheader);
+ auto Plan = std::make_unique<VPlan>(Entry, VecPreheader);
Plan->TripCount =
vputils::getOrCreateVPValueForSCEVExpr(*Plan, TripCount, SE);
// Create empty VPRegionBlock, to be filled during processing later.
More information about the llvm-commits
mailing list