Skip to content

Commit d95e7cd

Browse files
committed
Remove redundant setUnderlyingValue, adjust comment
1 parent b39d6f5 commit d95e7cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,16 +2711,14 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan,
27112711
continue;
27122712
}
27132713

2714-
// Expand VPBlendRecipe into VPInstruction::Select
2714+
// Expand VPBlendRecipe into VPInstruction::Select.
27152715
VPBuilder Builder(&R);
27162716
if (auto *Blend = dyn_cast<VPBlendRecipe>(&R)) {
27172717
VPValue *Select = Blend->getIncomingValue(0);
2718-
for (unsigned I = 1; I != Blend->getNumIncomingValues(); ++I) {
2718+
for (unsigned I = 1; I != Blend->getNumIncomingValues(); ++I)
27192719
Select = Builder.createSelect(Blend->getMask(I),
27202720
Blend->getIncomingValue(I), Select,
27212721
R.getDebugLoc(), "predphi");
2722-
Select->setUnderlyingValue(Blend->getUnderlyingValue());
2723-
}
27242722
Blend->replaceAllUsesWith(Select);
27252723
ToRemove.push_back(Blend);
27262724
}

0 commit comments

Comments
 (0)