Skip to content

Commit c180d0c

Browse files
[mlir] Use llvm::any_of (NFC) (#141317)
1 parent 407df06 commit c180d0c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -887,11 +887,10 @@ isNotLinearizableBecauseLargeInnerDimension(Operation *op,
887887
// Check on bitwidths.
888888
SmallVector<std::pair<Type, unsigned>> toCheck =
889889
getTypeBitWidthBoundPairs(op, targetBitWidth);
890-
return std::any_of(toCheck.begin(), toCheck.end(),
891-
[&](std::pair<Type, unsigned> typeWidth) {
892-
return isNotLinearizableBecauseLargeInnerDimension(
893-
typeWidth.first, typeWidth.second);
894-
});
890+
return llvm::any_of(toCheck, [&](std::pair<Type, unsigned> typeWidth) {
891+
return isNotLinearizableBecauseLargeInnerDimension(typeWidth.first,
892+
typeWidth.second);
893+
});
895894
}
896895

897896
void populateWithBitWidthConstraints(TypeConverter &typeConverter,

0 commit comments

Comments
 (0)