File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,14 @@ static void applyPatterns(Region ®ion,
5656 opsInRange.push_back (&op.value ());
5757 }
5858
59- // `applyOpPatternsAndFold` may erase the ops so we can't do the pattern
60- // matching in above iteration. Besides, erase op not-in-range may end up in
61- // invalid module, so `applyOpPatternsAndFold` should come before that
62- // transform.
59+ // `applyOpPatternsGreedily` with folding may erase the ops so we can't do the
60+ // pattern matching in above iteration. Besides, erase op not-in-range may end
61+ // up in invalid module, so `applyOpPatternsGreedily` with folding should come
62+ // before that transform.
6363 for (Operation *op : opsInRange) {
64- // `applyOpPatternsAndFold` returns whether the op is convered. Omit it
65- // because we don't have expectation this reduction will be success or not.
64+ // `applyOpPatternsGreedily` with folding returns whether the op is
65+ // convered. Omit it because we don't have expectation this reduction will
66+ // be success or not.
6667 GreedyRewriteConfig config;
6768 config.strictMode = GreedyRewriteStrictness::ExistingOps;
6869 (void )applyOpPatternsGreedily (op, patterns, config);
You can’t perform that action at this time.
0 commit comments