[Mlir-commits] [mlir] [mlir][vector] Fix invalid IR in `RewriteBitCastOfTruncI` (PR #78146)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jan 15 03:32:03 PST 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 08e4386a2c91befabab317498b50ffc326ff4eae 1b8b3c4c6f41968f29c8a1450a7fe6be246cfa10 -- mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index a56bcd14ec..071ebe2b1e 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -850,15 +850,15 @@ struct RewriteBitCastOfTruncI : OpRewritePattern<vector::BitCastOp> {
if (runningResult.getType() == bitCastOp.getResultVectorType()) {
rewriter.replaceOp(bitCastOp, runningResult);
} else {
- rewriter.replaceOpWithNewOp<arith::TruncIOp>(
- bitCastOp, bitCastOp.getResultVectorType(), runningResult);
+ rewriter.replaceOpWithNewOp<arith::TruncIOp>(
+ bitCastOp, bitCastOp.getResultVectorType(), runningResult);
}
} else {
if (runningResult.getType() == bitCastOp.getResultVectorType()) {
rewriter.replaceOp(bitCastOp, runningResult);
} else {
- rewriter.replaceOpWithNewOp<arith::ExtUIOp>(
- bitCastOp, bitCastOp.getResultVectorType(), runningResult);
+ rewriter.replaceOpWithNewOp<arith::ExtUIOp>(
+ bitCastOp, bitCastOp.getResultVectorType(), runningResult);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/78146
More information about the Mlir-commits
mailing list