This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add method to drop duplicate result exprs from AffineMap
ClosedPublic

Authored by bondhugula on Apr 1 2020, 1:16 PM.

Details

Summary

Add a method that given an affine map returns another with just its unique
results. Use this to drop redundant bounds in max/min for affine.for. Update
affine.for's canonicalization pattern and createCanonicalizedForOp to use
this.

Diff Detail

Event Timeline

bondhugula created this revision.Apr 1 2020, 1:16 PM
Herald added 1 blocking reviewer(s): rriddle. · View Herald TranscriptApr 1 2020, 1:16 PM
Herald added a project: Restricted Project. · View Herald Transcript
bondhugula updated this revision to Diff 254293.Apr 1 2020, 1:26 PM

Update to use recently added method for 0 result affine maps as well.

rriddle resigned from this revision.Apr 1 2020, 1:37 PM
Harbormaster completed remote builds in B51341: Diff 254293.
andydavis1 accepted this revision.Apr 1 2020, 2:09 PM
This revision is now accepted and ready to land.Apr 1 2020, 2:09 PM
This revision was automatically updated to reflect the committed changes.