[Mlir-commits] [mlir] [mlir] Fix block merging (PR #102038)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Aug 6 03:35:13 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 1b8593545316971ac3f922dcb7178623b5820003 80951a3dcb6a7f6c8b53e514c41a9d0e860ec7a7 --extensions cpp -- mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp mlir/lib/Transforms/Utils/RegionUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Transforms/Utils/RegionUtils.cpp b/mlir/lib/Transforms/Utils/RegionUtils.cpp
index e110e7c1c9..dd75e283a3 100644
--- a/mlir/lib/Transforms/Utils/RegionUtils.cpp
+++ b/mlir/lib/Transforms/Utils/RegionUtils.cpp
@@ -930,7 +930,8 @@ static LogicalResult dropRedundantArguments(RewriterBase &rewriter,
// Go through the block predecessor and flag if they pass to the block
// different values for the same argument.
- for (Block::pred_iterator predIt = block.pred_begin(), predE = block.pred_end();
+ for (Block::pred_iterator predIt = block.pred_begin(),
+ predE = block.pred_end();
predIt != predE; ++predIt) {
auto branch = dyn_cast<BranchOpInterface>((*predIt)->getTerminator());
if (!branch) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/102038
More information about the Mlir-commits
mailing list