[llvm] [LoopInterchange] Bail out early if minimum loop nest is not met (PR #115127)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 23:23:09 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 895a8e66c6d1e42519909981ab1bb0ad41231029 ed275fbe4a23aef5daa26ff0c263fca558382cc5 --extensions cpp -- llvm/lib/Passes/PassBuilderPipelines.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/115127
More information about the llvm-commits
mailing list