Skip to content
Commit 332f0b3c authored by Uday Bondhugula's avatar Uday Bondhugula
Browse files

Affine expr simplification for add of const multiple of same expression



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

Signed-off-by: default avatarUday Bondhugula <uday@polymagelabs.com>

Differential Revision: https://reviews.llvm.org/D76233
parent f20dcc31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment