[Mlir-commits] [mlir] [mlir] Use llvm::any_of (NFC) (PR #141317)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri May 23 19:53:31 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-vector

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/141317.diff


1 Files Affected:

- (modified) mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp (+4-5) 


``````````diff
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,

``````````

</details>


https://github.com/llvm/llvm-project/pull/141317


More information about the Mlir-commits mailing list