@@ -2380,8 +2380,8 @@ void VPlanTransforms::createInterleaveGroups(
2380
2380
}
2381
2381
}
2382
2382
2383
- // / Expand a VPWidenIntOrFpInduction into executable recipes. for the initial
2384
- // / value, phi and backedge value. In the followng example:
2383
+ // / Expand a VPWidenIntOrFpInduction into executable recipes, for the initial
2384
+ // / value, phi and backedge value. In the following example:
2385
2385
// /
2386
2386
// / vector.ph:
2387
2387
// / Successor(s): vector loop
@@ -2399,15 +2399,15 @@ void VPlanTransforms::createInterleaveGroups(
2399
2399
// / vector.ph:
2400
2400
// / ...
2401
2401
// / vp<%induction> = ...
2402
- // / vp<%inc > = ...
2402
+ // / vp<%induction.increment > = ...
2403
2403
// /
2404
2404
// / Successor(s): vector loop
2405
2405
// /
2406
2406
// / <x1> vector loop: {
2407
2407
// / vector.body:
2408
2408
// / ir<%i> = WIDEN-PHI vp<%induction>, vp<%vec.ind.next>
2409
2409
// / ...
2410
- // / vp<%vec.ind.next> = add ir<%i>, vp<%inc >
2410
+ // / vp<%vec.ind.next> = add ir<%i>, vp<%induction.increment >
2411
2411
// / EMIT branch-on-count ...
2412
2412
// / No successors
2413
2413
// / }
@@ -2442,7 +2442,7 @@ expandVPWidenIntOrFpInduction(VPWidenIntOrFpInductionRecipe *WidenIVR,
2442
2442
// If the phi is truncated, truncate the start and step values.
2443
2443
VPBuilder Builder (Plan->getVectorPreheader ());
2444
2444
if (isa<TruncInst>(IV)) {
2445
- assert (Start-> getUnderlyingValue ()-> getType ( )->isIntegerTy () &&
2445
+ assert (TypeInfo. inferScalarType (Start )->isIntegerTy () &&
2446
2446
" Truncation requires an integer type" );
2447
2447
Step = Builder.createScalarCast (Instruction::Trunc, Step, Ty, DL);
2448
2448
Start = Builder.createScalarCast (Instruction::Trunc, Start, Ty, DL);
0 commit comments