Skip to content

Commit 424c8f9

Browse files
committed
[VPlan] Remove dead UF argument from VPTransformState ctor (NFC).
1 parent 9a913a3 commit 424c8f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -7704,8 +7704,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
77047704
VPlanTransforms::convertToConcreteRecipes(BestVPlan);
77057705

77067706
// Perform the actual loop transformation.
7707-
VPTransformState State(&TTI, BestVF, BestUF, LI, DT, ILV.Builder, &ILV,
7708-
&BestVPlan, OrigLoop->getParentLoop(),
7707+
VPTransformState State(&TTI, BestVF, LI, DT, ILV.Builder, &ILV, &BestVPlan,
7708+
OrigLoop->getParentLoop(),
77097709
Legal->getWidestInductionType());
77107710

77117711
#ifdef EXPENSIVE_CHECKS

llvm/lib/Transforms/Vectorize/VPlan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ VPBasicBlock::iterator VPBasicBlock::getFirstNonPhi() {
216216
}
217217

218218
VPTransformState::VPTransformState(const TargetTransformInfo *TTI,
219-
ElementCount VF, unsigned UF, LoopInfo *LI,
219+
ElementCount VF, LoopInfo *LI,
220220
DominatorTree *DT, IRBuilderBase &Builder,
221221
InnerLoopVectorizer *ILV, VPlan *Plan,
222222
Loop *CurrentParentLoop, Type *CanonicalIVTy)

llvm/lib/Transforms/Vectorize/VPlanHelpers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class VPLane {
202202
/// VPTransformState holds information passed down when "executing" a VPlan,
203203
/// needed for generating the output IR.
204204
struct VPTransformState {
205-
VPTransformState(const TargetTransformInfo *TTI, ElementCount VF, unsigned UF,
205+
VPTransformState(const TargetTransformInfo *TTI, ElementCount VF,
206206
LoopInfo *LI, DominatorTree *DT, IRBuilderBase &Builder,
207207
InnerLoopVectorizer *ILV, VPlan *Plan,
208208
Loop *CurrentParentLoop, Type *CanonicalIVTy);

0 commit comments

Comments
 (0)