/// work-list driven manner. Return true if no more patterns can be matched in
/// the result operation regions.
/// Note: This does not apply patterns to the top-level operation itself.
+/// Note: This method also performs folding and simply dead-code elimination
+/// before attempting to match any of the provided patterns.
///
bool applyPatternsGreedily(Operation *op,
const OwningRewritePatternList &patterns);
// Make sure that any new operations are inserted at this point.
setInsertionPoint(op);
- // Try to match one of the canonicalization patterns. The rewriter is
- // automatically notified of any necessary changes, so there is nothing
- // else to do here.
+ // Try to match one of the patterns. The rewriter is automatically
+ // notified of any necessary changes, so there is nothing else to do here.
changed |= matcher.matchAndRewrite(op, *this);
}
} while (changed && ++i < maxIterations);