Skip to content

Commit b4cc0f1

Browse files
committed
Address review comments
1 parent 360b65f commit b4cc0f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,9 +2350,10 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
23502350
auto *EVLPhi = new VPEVLBasedIVPHIRecipe(StartV, DebugLoc());
23512351
EVLPhi->insertAfter(CanonicalIVPHI);
23522352
VPBuilder Builder(Header, Header->getFirstNonPhi());
2353-
// Create the AVL, starting from TC -> 0 in steps of EVL.
2354-
VPPhi *AVLPhi =
2355-
Builder.createScalarPhi({Plan.getTripCount()}, DebugLoc(), "avl");
2353+
// Create the AVL (application vector length), starting from TC -> 0 in steps
2354+
// of EVL.
2355+
VPPhi *AVLPhi = Builder.createScalarPhi(
2356+
{Plan.getTripCount()}, DebugLoc::getCompilerGenerated(), "avl");
23562357
VPValue *AVL = AVLPhi;
23572358

23582359
if (MaxSafeElements) {
@@ -2383,7 +2384,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
23832384

23842385
VPValue *NextAVL = Builder.createOverflowingOp(
23852386
Instruction::Sub, {AVLPhi, OpVPEVL}, {/*hasNUW=*/true, /*hasNSW=*/false},
2386-
DebugLoc(), "avl.next");
2387+
DebugLoc::getCompilerGenerated(), "avl.next");
23872388
AVLPhi->addOperand(NextAVL);
23882389

23892390
transformRecipestoEVLRecipes(Plan, *VPEVL);

0 commit comments

Comments
 (0)