This allows scf.if to be used by Control-Flow sink.
Depends on D115088
Paths
| Differential D115089
[mlir][scf] Update IfOp to have getInvocationBounds ClosedPublic Authored by Mogball on Dec 3 2021, 5:25 PM.
Details
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 19 others. · View Herald TranscriptDec 3 2021, 5:25 PM
This revision is now accepted and ready to land.Jan 26 2022, 10:15 PM Closed by commit rG1e3a02162db2: [mlir][scf] Update IfOp to have getInvocationBounds (authored by Mogball). · Explain WhyJan 27 2022, 3:16 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 392110 mlir/include/mlir/Dialect/SCF/SCFOps.td
mlir/lib/Dialect/SCF/SCF.cpp
mlir/test/Transforms/control-flow-sink.mlir
|
As mentioned in another comment I made somewhere, this is assuming we never call this method speculatively. Not that this is bad, but it is a specific invariant of the API that should be documented (on the interface doc itself).