[llvm] [LoopInterchange] Make the entries of the Dependency Matrix unique (PR #116195)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 02:08:01 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 3fcb9684cf6ba4ff9009ebabd9ff966eeb8b15f7 a177bc011f6c2d5c7c40ff5c04152bde330c3d43 --extensions cpp -- llvm/lib/Transforms/Scalar/LoopInterchange.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index 703be2fb7a..8e1d07792c 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -159,11 +159,11 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
}
// Make sure we only add unique entries to the dependency matrix.
- std::string Hash = std::string(Dep.begin(), Dep.end());
- if (UniqueDepEntries.find(Hash) == UniqueDepEntries.end() ) {
+ std::string Hash = std::string(Dep.begin(), Dep.end());
+ if (UniqueDepEntries.find(Hash) == UniqueDepEntries.end()) {
UniqueDepEntries.insert(Hash);
DepMatrix.push_back(Dep);
- }
+ }
if (DepMatrix.size() > MaxMemInstrCount) {
LLVM_DEBUG(dbgs() << "Cannot handle more than " << MaxMemInstrCount
``````````
</details>
https://github.com/llvm/llvm-project/pull/116195
More information about the llvm-commits
mailing list