Skip to content

Commit 1027c7a

Browse files
committed
!fixup pass type again.
1 parent de0133d commit 1027c7a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7934,8 +7934,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
79347934
BestVPlan, BestVF,
79357935
TTI.getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector));
79367936
VPlanTransforms::removeDeadRecipes(BestVPlan);
7937-
VPTypeAnalysis TypeInfo(Legal->getWidestInductionType());
7938-
VPlanTransforms::convertToConcreteRecipes(BestVPlan, TypeInfo);
7937+
VPlanTransforms::convertToConcreteRecipes(BestVPlan,
7938+
*Legal->getWidestInductionType());
79397939

79407940
// Perform the actual loop transformation.
79417941
VPTransformState State(&TTI, BestVF, LI, DT, ILV.Builder, &ILV, &BestVPlan,

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,9 +2376,10 @@ void VPlanTransforms::createInterleaveGroups(
23762376
}
23772377

23782378
void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan,
2379-
VPTypeAnalysis &TypeInfo) {
2379+
Type &CanonicalIVTy) {
23802380
using namespace llvm::VPlanPatternMatch;
23812381

2382+
VPTypeAnalysis TypeInfo(&CanonicalIVTy);
23822383
SmallVector<VPRecipeBase *> ToRemove;
23832384
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
23842385
vp_depth_first_deep(Plan.getEntry()))) {

llvm/lib/Transforms/Vectorize/VPlanTransforms.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ struct VPlanTransforms {
176176
BasicBlock *UncountableExitingBlock,
177177
VPRecipeBuilder &RecipeBuilder);
178178

179-
/// Lower abstract recipes to concrete ones, that can be codegen'd.
180-
static void convertToConcreteRecipes(VPlan &Plan, VPTypeAnalysis &TypeInfo);
179+
/// Lower abstract recipes to concrete ones, that can be codegen'd. Use \p
180+
/// CanonicalIVTy as type for all un-typed live-ins in VPTypeAnalysis.
181+
static void convertToConcreteRecipes(VPlan &Plan, Type &CanonicalIVTy);
181182

182183
/// Perform instcombine-like simplifications on recipes in \p Plan. Use \p
183184
/// CanonicalIVTy as type for all un-typed live-ins in VPTypeAnalysis.

0 commit comments

Comments
 (0)