Skip to content

Commit 7452014

Browse files
committed
[LV] Simplify !UserVF.isZero() -> UserVF (NFC).
Address post-commit comment for b8dccb7 to simplify code.
1 parent c91cc45 commit 7452014

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
@@ -7014,7 +7014,7 @@ LoopVectorizationPlanner::plan(ElementCount UserVF, unsigned UserIC) {
70147014

70157015
ElementCount MaxUserVF =
70167016
UserVF.isScalable() ? MaxFactors.ScalableVF : MaxFactors.FixedVF;
7017-
if (!UserVF.isZero()) {
7017+
if (UserVF) {
70187018
if (!ElementCount::isKnownLE(UserVF, MaxUserVF)) {
70197019
reportVectorizationInfo(
70207020
"UserVF ignored because it may be larger than the maximal safe VF",

0 commit comments

Comments
 (0)