Skip to content

Commit d7584a3

Browse files
committed
Remove the constraint for reductions
1 parent 9f77cd3 commit d7584a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,9 +1534,7 @@ class LoopVectorizationCostModel {
15341534
TTI.hasActiveVectorLength(0, nullptr, Align()) &&
15351535
!EnableVPlanNativePath &&
15361536
// FIXME: implement support for max safe dependency distance.
1537-
Legal->isSafeForAnyVectorWidth() &&
1538-
// FIXME: remove this once reductions are supported.
1539-
Legal->getReductionVars().empty();
1537+
Legal->isSafeForAnyVectorWidth();
15401538
if (!EVLIsLegal) {
15411539
// If for some reason EVL mode is unsupported, fallback to
15421540
// DataWithoutLaneMask to try to vectorize the loop with folded tail

0 commit comments

Comments
 (0)