This patch slightly updates the behavior of scf.if->select to
place any hoisted select statements prior to the remaining scf.if body.
This allows better composition with other canonicalization passes, such as
scf.if nested merging.
Paths
| Differential D122027
[MLIR][SCF] Place hoisted scf.if->select prior to the remaining if ClosedPublic Authored by wsmoses on Mar 18 2022, 12:16 PM.
Details Summary This patch slightly updates the behavior of scf.if->select to This allows better composition with other canonicalization passes, such as
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 18 2022, 3:55 PM Closed by commit rGd8a6a696bfa1: [MLIR][SCF] Place hoisted scf.if->select prior to the remaining if (authored by wsmoses). · Explain WhyMar 18 2022, 7:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 416653 mlir/lib/Dialect/SCF/SCF.cpp
mlir/test/Dialect/SCF/canonicalize.mlir
|