return memrefDef && ploop.getOperation()->isAncestor(memrefDef);
}
-// Checks if the parallel loops have mixed access to the same buffers. Returns
-// `true` if the first parallel loop writes to the same indices that the second
-// loop reads.
+/// Checks if the parallel loops have mixed access to the same buffers. Returns
+/// `true` if the first parallel loop writes to the same indices that the second
+/// loop reads.
static bool haveNoReadsAfterWriteExceptSameIndex(
ParallelOp firstPloop, ParallelOp secondPloop,
const BlockAndValueMapping &firstToSecondPloopIndices) {
noSideEffects &= op.hasNoSideEffect();
}
for (ArrayRef<ParallelOp> ploops : ploop_chains) {
- llvm::errs() << "poo size = " << ploops.size() << '\n';
for (int i = 0, e = ploops.size(); i + 1 < e; ++i)
fuseIfLegal(ploops[i], ploops[i + 1], b);
}