Add a pattern rewriter utility to erase blocks (while notifying the
pattern rewriting driver of the erased ops). Use this to remove trivial
else blocks in affine.if ops.
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
| Paths 
 |  Differential  D77083  
[MLIR] Add pattern rewriter util to erase block; add affine.if pattern to remove dead else blocks ClosedPublic Authored by bondhugula on Mar 30 2020, 12:51 PM. 
Details Summary Add a pattern rewriter utility to erase blocks (while notifying the Signed-off-by: Uday Bondhugula <uday@polymagelabs.com> 
Diff Detail 
 Event Timelinebondhugula retitled this revision from [MLIR] Add pattern rewriter util to erase block; remove dead else to [MLIR] Add pattern rewriter util to erase block; add affine.if pattern to remove dead else blocks.Mar 30 2020, 12:53 PM rriddle added inline comments. 
 This revision now requires changes to proceed.Mar 30 2020, 12:58 PM bondhugula added inline comments. 
 bondhugula added inline comments. 
 rriddle added inline comments. 
 This revision now requires changes to proceed.Mar 30 2020, 1:33 PM bondhugula added inline comments. 
 bondhugula marked an inline comment as done and an inline comment as not done. rriddle added inline comments. This revision is now accepted and ready to land.Apr 2 2020, 6:08 PM bondhugula marked 6 inline comments as done.Comment Actions Address review comments and rebase 
 Closed by commit rG3f9cdd44d740: [MLIR] Add pattern rewriter util to erase block; remove dead else (authored by bondhugula).  ·  Explain WhyApr 5 2020, 7:27 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 253682 mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
 mlir/include/mlir/IR/PatternMatch.h
 mlir/lib/Dialect/Affine/IR/AffineOps.cpp
 mlir/lib/IR/PatternMatch.cpp
 mlir/test/Transforms/canonicalize.mlir
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can you add proper handling for DialectConversion?