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

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 06:57:11 PDT 2020


bondhugula created this revision.
bondhugula added reviewers: andydavis1, flaub.
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.
bondhugula added a child revision: D76700: [MLIR] Introduce full/partial tile separation using if/else.
bondhugula retitled this revision from "[MLIR] add flat affine constraints method to round trip integer set" to "[MLIR] Add flat affine constraints method to round trip integer set".

- 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/D76701

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: D76701.252299.patch
Type: text/x-patch
Size: 11303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200324/291e2871/attachment-0001.bin>


More information about the llvm-commits mailing list