[Mlir-commits] [mlir] [mlir][vector] fold transpose(poison) -> poison (PR #135675)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 14 13:40:52 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Vector/IR/VectorOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 3a5646267..e812d3d88 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -6009,7 +6009,6 @@ OpFoldResult vector::TransposeOp::fold(FoldAdaptor adaptor) {
if (attr.isSplat())
return attr.reshape(getResultVectorType());
-
// Eliminate poison transpose ops.
if (llvm::dyn_cast_if_present<ub::PoisonAttr>(adaptor.getVector()))
return ub::PoisonAttr::get(getContext());
``````````
</details>
https://github.com/llvm/llvm-project/pull/135675
More information about the Mlir-commits
mailing list