This is an archive of the discontinued LLVM Phabricator instance.

[mlir][PatternRewrite] Allow pattern application for regions of ops not isolated from above.
Needs ReviewPublic

Authored by mravishankar on Aug 28 2023, 6:45 PM.

Details

Summary

Right now applying patterns for ops not isolated from above hits an
assert. Trying this on a region not isolated from above also works,
but probably has broader impact. For now adding an option to enable
this as an opt-in.

Diff Detail

Event Timeline

mravishankar created this revision.Aug 28 2023, 6:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 6:45 PM
mravishankar requested review of this revision.Aug 28 2023, 6:45 PM
mehdi_amini added inline comments.Aug 28 2023, 8:19 PM
mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
54

It's not clear to me that this belongs to a config flag, why?

mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
722

What about this comment?