[llvm] [LoopDist] Add metadata for checking post process state of distribute… (PR #153902)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 16:34:59 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/LoopDistribute.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
index d54fb482d..c8287025f 100644
--- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
@@ -991,8 +991,10 @@ static bool runImpl(Function &F, LoopInfo *LI, DominatorTree *DT,
LoopDistributeForLoop LDL(L, &F, LI, DT, SE, LAIs, ORE);
// Do not reprocess loops we already distributed
- if (auto Distributed = getOptionalIntLoopAttribute(L, DistributedCountMetaData)) {
- LLVM_DEBUG(dbgs() << "LDist: Distributed loop guarded for reprocessing\n");
+ if (auto Distributed =
+ getOptionalIntLoopAttribute(L, DistributedCountMetaData)) {
+ LLVM_DEBUG(
+ dbgs() << "LDist: Distributed loop guarded for reprocessing\n");
continue;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/153902
More information about the llvm-commits
mailing list