Skip to content

Commit f43d6a7

Browse files
committed
[Comment] Refine IsScalabeOne
1 parent 45626c1 commit f43d6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8561,7 +8561,7 @@ static void addExitUsersForFirstOrderRecurrences(
85618561
VPBuilder MiddleBuilder(MiddleVPBB, MiddleVPBB->getFirstNonPhi());
85628562

85638563
auto IsScalableOne = [](ElementCount VF) -> bool {
8564-
return VF.isScalable() && VF.getKnownMinValue() == 1;
8564+
return VF == ElementCount::getScalable(1);
85658565
};
85668566

85678567
for (auto &HeaderPhi : VectorRegion->getEntryBasicBlock()->phis()) {

0 commit comments

Comments
 (0)