[Mlir-commits] [mlir] [mlir][vector] Restrict DropInnerMostUnitDimsTransferWrite (PR #96218)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jul 11 02:08:00 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 1ed84a862f9ce3c60251968f23a5405f06458975 9441eb0c068ffdfa0cdbc46faf1b66e429dfed1d --extensions cpp -- mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
index 3eda8bfccb..5e139648d2 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1416,8 +1416,8 @@ class DropInnerMostUnitDimsTransferWrite
return !inBounds && nonZeroIdx;
});
else
- indexOutOfBounds = !llvm::all_of(writeOp.getIndices().take_back(dimsToDrop),
- isZeroIndex);
+ indexOutOfBounds = !llvm::all_of(
+ writeOp.getIndices().take_back(dimsToDrop), isZeroIndex);
if (indexOutOfBounds)
return failure();
``````````
</details>
https://github.com/llvm/llvm-project/pull/96218
More information about the Mlir-commits
mailing list