Skip to content

Commit 3637cfb

Browse files
committed
!fixup address latest comments, thanks!
1 parent 9d67dcd commit 3637cfb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ void VPlanTransforms::optimizeForVFAndUF(VPlan &Plan, ElementCount BestVF,
713713
// TODO: Further simplifications are possible
714714
// 1. Replace inductions with constants.
715715
// 2. Replace vector loop region with VPBasicBlock.
716-
//
717716
}
718717

719718
/// Sink users of \p FOR after the recipe defining the previous value \p
@@ -1664,8 +1663,6 @@ void VPlanTransforms::createInterleaveGroups(
16641663

16651664
static bool supportedLoad(VPWidenRecipe *R0, VPValue *V, unsigned Idx) {
16661665
if (auto *W = dyn_cast_or_null<VPWidenLoadRecipe>(V->getDefiningRecipe())) {
1667-
if (W->getMask())
1668-
return false;
16691666
return !W->getMask() && (R0->getOperand(0) == V || R0->getOperand(1) == V);
16701667
}
16711668

@@ -1726,9 +1723,7 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF) {
17261723
auto *R = dyn_cast<VPWidenRecipe>(V->getDefiningRecipe());
17271724
if (!R || R->getOpcode() != Lane0->getOpcode())
17281725
return;
1729-
// Work around captured structured bindings being a C++20 extension.
1730-
auto Idx = I;
1731-
if (any_of(R->operands(), [Lane0, Idx](VPValue *V) {
1726+
if (any_of(R->operands(), [Lane0, Idx=I](VPValue *V) {
17321727
return !supportedLoad(Lane0, V, Idx);
17331728
}))
17341729
return;

0 commit comments

Comments
 (0)