Skip to content

Commit 4513dfd

Browse files
committed
add comments
1 parent c2e23b1 commit 4513dfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ static void fuseIfLegal(ParallelOp firstPloop, ParallelOp &secondPloop,
145145
return;
146146

147147
DominanceInfo dom;
148+
// We are fusing first loop into second, make sure there are no users of the
149+
// first loop results between loops.
148150
for (Operation *user : firstPloop->getUsers())
149151
if (!dom.properlyDominates(secondPloop, user, /*enclosingOpOk*/ false))
150152
return;

0 commit comments

Comments
 (0)