[PATCH] D76233: Affine expr simplification for add of const multiple of same expression

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 16 09:14:47 PDT 2020


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

Remove debug code


- Detect "c_1 * expr + c_2 * expr" as (c_1 + c_2) * expr
- subsumes things like 'expr - expr' and "expr * -1 + expr" as 0.
- add default null init ctor for AffineConstantExpr

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76233

Files:
  mlir/include/mlir/IR/AffineExpr.h
  mlir/lib/IR/AffineExpr.cpp
  mlir/test/Dialect/AffineOps/canonicalize.mlir
  mlir/test/IR/affine-map.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76233.250578.patch
Type: text/x-patch
Size: 4701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200316/288472e2/attachment.bin>


More information about the llvm-commits mailing list