The commit simplifies affine.if ops :
The affine if operation gets removed if the condition is universally true or false and then/else block is merged with the parent block.
Signed-off-by: Shashij Gupta shashij.gupta@polymagelabs.com
| Paths 
 |  Differential  D104015  
[MLIR] Simplify affine.if ops with trivial conditions ClosedPublic Authored by shashij-polymagelabs on Jun 10 2021, 2:24 AM. 
Details Summary The commit simplifies affine.if ops : Signed-off-by: Shashij Gupta shashij.gupta@polymagelabs.com 
Diff Detail 
 Event TimelineHerald added subscribers: dcaballe, cota, teijeong and 16 others.  ·  View Herald TranscriptJun 10 2021, 2:24 AM bondhugula added inline comments. This revision now requires changes to proceed.Jun 10 2021, 2:44 AM 
 This comment was removed by bondhugula. 
 This revision is now accepted and ready to land.Jun 11 2021, 4:07 PM Closed by commit rG466e5aba6495: [MLIR] Simplify affine.if ops with trivial conditions (authored by shashij-polymagelabs, committed by bondhugula).  ·  Explain WhyJun 12 2021, 7:02 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 351656 mlir/lib/Dialect/Affine/IR/AffineOps.cpp
 mlir/test/Dialect/Affine/loop-unswitch.mlir
 mlir/test/Dialect/Affine/simplify-affine-structures.mlir
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nit: affine.If -> affine.if