Skip to content

Commit 2dfefdd

Browse files
committed
add comments
1 parent 8cb630f commit 2dfefdd

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
@@ -152,6 +152,8 @@ static void fuseIfLegal(ParallelOp firstPloop, ParallelOp &secondPloop,
152152
return;
153153

154154
DominanceInfo dom;
155+
// We are fusing first loop into second, make sure there are no users of the
156+
// first loop results between loops.
155157
for (Operation *user : firstPloop->getUsers())
156158
if (!dom.properlyDominates(secondPloop, user, /*enclosingOpOk*/ false))
157159
return;

0 commit comments

Comments
 (0)