[PATCH] D76824: [MLIR] Add flat affine constraints method to round trip integer set

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 22:11:45 PDT 2020


bondhugula created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.

- add method to get back an integer set from flat affine constraints; this allows a round trip
- use this to complete the simplification of integer sets in -simplify-affine-structures
- update FlatAffineConstraints::removeTrivialRedundancy to also do GCD tightening and normalize by GCD (while still keeping it linear time).

Signed-off-by: Uday Bondhugula <uday at polymagelabs.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76824

Files:
  mlir/include/mlir/Analysis/AffineStructures.h
  mlir/include/mlir/Analysis/Utils.h
  mlir/lib/Analysis/AffineStructures.cpp
  mlir/lib/Analysis/Utils.cpp
  mlir/lib/Dialect/Affine/Transforms/SimplifyAffineStructures.cpp
  mlir/test/Dialect/Affine/simplify-affine-structures.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76824.252745.patch
Type: text/x-patch
Size: 12511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/5fede3e1/attachment.bin>


More information about the llvm-commits mailing list