[Mlir-commits] [mlir] [mlir][bufferization] Handle disjoint subsets in One-Shot Analysis (PR #224184)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 16 20:15:49 PDT 2026
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 origin/main HEAD --extensions cpp -- mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp b/mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
index ffdefa79e..c7e6acc7f 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
@@ -552,8 +552,7 @@ static bool areNonConflictingSubsets(OpOperand *uRead,
// leaf or an extraction that may overlap keeps the analysis conservative.
SetVector<Value> readOrigins =
state.findValueInReverseUseDefChain(uRead, isDisjointExtraction);
- if (!readOrigins.empty() &&
- llvm::all_of(readOrigins, isDisjointExtraction))
+ if (!readOrigins.empty() && llvm::all_of(readOrigins, isDisjointExtraction))
return true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/224184
More information about the Mlir-commits
mailing list