@@ -7515,7 +7515,7 @@ LoopVectorizationPlanner::planInVPlanNativePath(ElementCount UserVF) {
7515
7515
// reasonable one.
7516
7516
if (UserVF.isZero ()) {
7517
7517
VF = ElementCount::getFixed (determineVPlanVF (
7518
- TTI-> getRegisterBitWidth (TargetTransformInfo::RGK_FixedWidthVector)
7518
+ TTI. getRegisterBitWidth (TargetTransformInfo::RGK_FixedWidthVector)
7519
7519
.getFixedValue (),
7520
7520
CM));
7521
7521
LLVM_DEBUG (dbgs () << " LV: VPlan computed VF " << VF << " .\n " );
@@ -7559,7 +7559,7 @@ LoopVectorizationPlanner::plan(ElementCount UserVF, unsigned UserIC) {
7559
7559
7560
7560
// Invalidate interleave groups if all blocks of loop will be predicated.
7561
7561
if (CM.blockNeedsPredicationForAnyReason (OrigLoop->getHeader ()) &&
7562
- !useMaskedInterleavedAccesses (* TTI)) {
7562
+ !useMaskedInterleavedAccesses (TTI)) {
7563
7563
LLVM_DEBUG (
7564
7564
dbgs ()
7565
7565
<< " LV: Invalidate all interleaved groups due to fold-tail by masking "
@@ -9200,7 +9200,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
9200
9200
VecOp = FMulRecipe;
9201
9201
}
9202
9202
VPReductionRecipe *RedRecipe =
9203
- new VPReductionRecipe (&RdxDesc, R, ChainOp, VecOp, CondOp, TTI);
9203
+ new VPReductionRecipe (&RdxDesc, R, ChainOp, VecOp, CondOp, & TTI);
9204
9204
WidenRecipe->getVPSingleValue ()->replaceAllUsesWith (RedRecipe);
9205
9205
Plan->removeVPValueFor (R);
9206
9206
Plan->addVPValue (R, RedRecipe);
@@ -9900,7 +9900,7 @@ static bool processLoopInVPlanNativePath(
9900
9900
// Use the planner for outer loop vectorization.
9901
9901
// TODO: CM is not used at this point inside the planner. Turn CM into an
9902
9902
// optional argument if we don't need it in the future.
9903
- LoopVectorizationPlanner LVP (L, LI, TLI, TTI, LVL, CM, IAI, PSE, Hints, ORE);
9903
+ LoopVectorizationPlanner LVP (L, LI, TLI, * TTI, LVL, CM, IAI, PSE, Hints, ORE);
9904
9904
9905
9905
// Get user vectorization factor.
9906
9906
ElementCount UserVF = Hints.getWidth ();
@@ -10240,7 +10240,8 @@ bool LoopVectorizePass::processLoop(Loop *L) {
10240
10240
LoopVectorizationCostModel CM (SEL, L, PSE, LI, &LVL, *TTI, TLI, DB, AC, ORE,
10241
10241
F, &Hints, IAI);
10242
10242
// Use the planner for vectorization.
10243
- LoopVectorizationPlanner LVP (L, LI, TLI, TTI, &LVL, CM, IAI, PSE, Hints, ORE);
10243
+ LoopVectorizationPlanner LVP (L, LI, TLI, *TTI, &LVL, CM, IAI, PSE, Hints,
10244
+ ORE);
10244
10245
10245
10246
// Get user vectorization factor and interleave count.
10246
10247
ElementCount UserVF = Hints.getWidth ();
0 commit comments