[llvm] [LoopDist] Add metadata for checking post process state of distribute… (PR #153902)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 20 03:55:59 PDT 2025
================
@@ -986,6 +990,14 @@ static bool runImpl(Function &F, LoopInfo *LI, DominatorTree *DT,
for (Loop *L : Worklist) {
LoopDistributeForLoop LDL(L, &F, LI, DT, SE, LAIs, ORE);
+ // Do not reprocess loops we already distributed
+ if (auto Distributed =
+ getOptionalIntLoopAttribute(L, DistributedMetaData)) {
----------------
Meinersbur wrote:
```suggestion
getOptionalBoolLoopAttribute(L, DistributedMetaData)) {
```
https://github.com/llvm/llvm-project/pull/153902
More information about the llvm-commits
mailing list