[llvm] [LoopInterchange] Constrain load/stores in a loop (PR #118973)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 06:04:40 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 f0b09dfd4c84fe8ffbc726da39ee5255e1a22a2f 1535587faa35d7de77b9317fdedd616fca80ed0e --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 42db6ecc9f..d20a98f5f8 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -84,7 +84,8 @@ static void printDepMatrix(CharMatrix &DepMatrix) {
static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
Loop *L, DependenceInfo *DI,
- ScalarEvolution *SE, OptimizationRemarkEmitter *ORE) {
+ ScalarEvolution *SE,
+ OptimizationRemarkEmitter *ORE) {
using ValueVector = SmallVector<Value *, 16>;
ValueVector MemInstr;
@@ -115,9 +116,9 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
<< MaxMemInstrCount << " load stores in a loop\n");
ORE->emit([&]() {
return OptimizationRemarkMissed(DEBUG_TYPE, "UnsupportedLoop",
- L->getStartLoc(),
- L->getHeader())
- << "Reached maximum loads/stores than can be supported in the loop.";
+ L->getStartLoc(), L->getHeader())
+ << "Reached maximum loads/stores than can be supported in the "
+ "loop.";
});
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/118973
More information about the llvm-commits
mailing list