Skip to content

Commit ef770ce

Browse files
committed
[Comment] Refine IsScalabeOne
1 parent 8108bd3 commit ef770ce

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
@@ -8559,7 +8559,7 @@ static void addExitUsersForFirstOrderRecurrences(
85598559
VPBuilder MiddleBuilder(MiddleVPBB, MiddleVPBB->getFirstNonPhi());
85608560

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

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

0 commit comments

Comments
 (0)