diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-23 00:28:31 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-23 00:28:31 -0700 |
commit | 380a1b204c36cc8c6fdf28618d8a838aed8b7197 (patch) | |
tree | eca4412a72fbdd0331995af8151453e4cc82edfe /mlir/lib/Conversion/VectorToLLVM | |
parent | 3ccd4ce29ca7f59eb12b077705cde2c11ac13aae (diff) |
Use callables directly in any_of, count_if, etc (NFC)
Diffstat (limited to 'mlir/lib/Conversion/VectorToLLVM')
-rw-r--r-- | mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp index bf9967f0001d..d579c4f080c7 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp @@ -948,9 +948,7 @@ public: if (!targetStrides) return failure(); // Only support static strides for now, regardless of contiguity. - if (llvm::any_of(*targetStrides, [](int64_t stride) { - return ShapedType::isDynamicStrideOrOffset(stride); - })) + if (llvm::any_of(*targetStrides, ShapedType::isDynamicStrideOrOffset)) return failure(); auto int64Ty = IntegerType::get(rewriter.getContext(), 64); |