Skip to content

Commit 083707e

Browse files
committed
add comments
1 parent 65a3b05 commit 083707e

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
@@ -175,6 +175,8 @@ static void fuseIfLegal(ParallelOp firstPloop, ParallelOp &secondPloop,
175175
return;
176176

177177
DominanceInfo dom;
178+
// We are fusing first loop into second, make sure there are no users of the
179+
// first loop results between loops.
178180
for (Operation *user : firstPloop->getUsers())
179181
if (!dom.properlyDominates(secondPloop, user, /*enclosingOpOk*/ false))
180182
return;

0 commit comments

Comments
 (0)