Skip to content

Commit 8ff27bb

Browse files
committed
[VPlan] Remove unneeded select in VPWidenPointerInductionRecipe (NFC).
1 parent 6c2f847 commit 8ff27bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3364,7 +3364,7 @@ void VPWidenPointerInductionRecipe::execute(VPTransformState &State) {
33643364
if (CurrentPart == 0) {
33653365
// The recipe represents the first part of the pointer induction. Create the
33663366
// GEP to increment the phi across all unrolled parts.
3367-
unsigned UF = CurrentPart == 0 ? getParent()->getPlan()->getUF() : 1;
3367+
unsigned UF = getParent()->getPlan()->getUF();
33683368
Value *NumUnrolledElems =
33693369
State.Builder.CreateMul(RuntimeVF, ConstantInt::get(PhiType, UF));
33703370

0 commit comments

Comments
 (0)