[PATCH] D77237: [MLIR] Add method to drop duplicate result exprs from AffineMap

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 13:30:54 PDT 2020


bondhugula created this revision.
bondhugula added reviewers: ftynse, andydavis1, rriddle.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, mehdi_amini.
Herald added 1 blocking reviewer(s): rriddle.
Herald added a project: LLVM.
bondhugula updated this revision to Diff 254293.
bondhugula added a comment.

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


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77237

Files:
  mlir/include/mlir/IR/AffineMap.h
  mlir/include/mlir/Transforms/LoopUtils.h
  mlir/lib/Dialect/Affine/IR/AffineOps.cpp
  mlir/lib/IR/AffineMap.cpp
  mlir/lib/Transforms/Utils/LoopUtils.cpp
  mlir/test/Conversion/AffineToStandard/lower-affine.mlir
  mlir/test/Dialect/Affine/canonicalize.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77237.254293.patch
Type: text/x-patch
Size: 5545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200401/af4d7c07/attachment.bin>


More information about the llvm-commits mailing list