[llvm] [LoopInterchange] Bail out early if minimum loop nest is not met (PR #115128)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 23:30:34 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 1715549373ab774bd73de0c982f7f01f30f94720 636cdf1bda4d1f10babc23b7f2c6b415ab527c84 --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 09bd7d8eda..80b6c0132d 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -1722,11 +1722,11 @@ PreservedAnalyses LoopInterchangePass::run(LoopNest &LN,
Function &F = *LN.getParent();
SmallVector<Loop *, 8> LoopList(LN.getLoops());
-
+
// Ensure minimum depth of the loop nest to do the interchange.
if (!hasMinimumLoopDepth(LoopList))
return PreservedAnalyses::all();
-
+
DependenceInfo DI(&F, &AR.AA, &AR.SE, &AR.LI);
std::unique_ptr<CacheCost> CC =
CacheCost::getCacheCost(LN.getOutermostLoop(), AR, DI);
``````````
</details>
https://github.com/llvm/llvm-project/pull/115128
More information about the llvm-commits
mailing list