Skip to content

Commit ff47980

Browse files
committed
remove extra dominance check
1 parent a6d0588 commit ff47980

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ static void fuseIfLegal(ParallelOp firstPloop, ParallelOp &secondPloop,
158158
mayAlias))
159159
return;
160160

161-
DominanceInfo dom;
162-
// We are fusing first loop into second, make sure there are no users of the
163-
// first loop results between loops.
164-
for (Operation *user : firstPloop->getUsers())
165-
if (!dom.properlyDominates(secondPloop, user, /*enclosingOpOk*/ false))
166-
return;
167-
168161
IRRewriter rewriter(builder);
169162
secondPloop = mlir::fuseIndependentSiblingParallelLoops(
170163
firstPloop, secondPloop, rewriter);

0 commit comments

Comments
 (0)