We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f81156 commit b3771fdCopy full SHA for b3771fd
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2890,8 +2890,7 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
2890
return !Legal->isInvariant(RHS) ||
2891
(!Legal->isInvariant(LHS) &&
2892
(!isa<ConstantInt>(RHS) ||
2893
- (isa<ConstantInt>(RHS) &&
2894
- cast<ConstantInt>(RHS)->getValue().isAllOnes())));
+ (isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isMinusOne())));
2895
}
2896
2897
0 commit comments