This helper function checks if two given ops are in mutually exclusive branches of the same scf::IfOp.
Depends On D111928
Paths
| Differential D111957
[mlir][scf] Add insideMutuallyExclusiveBranches helper ClosedPublic Authored by springerm on Oct 17 2021, 1:45 AM.
Details Summary This helper function checks if two given ops are in mutually exclusive branches of the same scf::IfOp. Depends On D111928
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 19 others. · View Herald TranscriptOct 17 2021, 1:45 AM
springerm added a child revision: D111929: [mlir][linalg][bufferize] Support scf::IfOp.Oct 17 2021, 1:48 AM This revision is now accepted and ready to land.Oct 18 2021, 5:45 AM springerm retitled this revision from [mlir][scf] Add insideMutableExclusiveBranches helper to [mlir][scf] Add insideMutuallyExclusiveBranches helper.Oct 18 2021, 5:07 PM This revision was landed with ongoing or failed builds.Oct 18 2021, 5:14 PM Closed by commit rGfd26ca4e7515: [mlir][scf] Add insideMutuallyExclusiveBranches helper (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 380229 mlir/include/mlir/Dialect/SCF/SCF.h
mlir/lib/Dialect/SCF/SCF.cpp
|
I think RegionBranchOpInterface does not have the capability to support this atm. I can query the "successor" region of a region (or an op in general). But, in general, after executing a region, another region of the same op may execute. What we are asking here is "execute one region but not the other one".