[Mlir-commits] [mlir] [mlir] Use llvm::any_of (NFC) (PR #141317)
Kazu Hirata
llvmlistbot at llvm.org
Fri May 23 19:52:58 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141317
None
>From b7d0f1a6fec78b14ce195ed3751a288af0957a85 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 23 May 2025 10:36:41 -0700
Subject: [PATCH] [mlir] Use llvm::any_of (NFC)
---
mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
index ccba2e2806862..f4f32e9339870 100644
--- a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
+++ b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
@@ -887,11 +887,10 @@ isNotLinearizableBecauseLargeInnerDimension(Operation *op,
// Check on bitwidths.
SmallVector<std::pair<Type, unsigned>> toCheck =
getTypeBitWidthBoundPairs(op, targetBitWidth);
- return std::any_of(toCheck.begin(), toCheck.end(),
- [&](std::pair<Type, unsigned> typeWidth) {
- return isNotLinearizableBecauseLargeInnerDimension(
- typeWidth.first, typeWidth.second);
- });
+ return llvm::any_of(toCheck, [&](std::pair<Type, unsigned> typeWidth) {
+ return isNotLinearizableBecauseLargeInnerDimension(typeWidth.first,
+ typeWidth.second);
+ });
}
void populateWithBitWidthConstraints(TypeConverter &typeConverter,
More information about the Mlir-commits
mailing list