Skip to content

Commit b3771fd

Browse files
committed
Address comments
1 parent 5f81156 commit b3771fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,8 +2890,7 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
28902890
return !Legal->isInvariant(RHS) ||
28912891
(!Legal->isInvariant(LHS) &&
28922892
(!isa<ConstantInt>(RHS) ||
2893-
(isa<ConstantInt>(RHS) &&
2894-
cast<ConstantInt>(RHS)->getValue().isAllOnes())));
2893+
(isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isMinusOne())));
28952894
}
28962895
}
28972896
}

0 commit comments

Comments
 (0)