[MLIR] Fix bug in the method constructing semi affine expression from flattened form
authorArnab Dutta <arnab@polymagelabs.com>
Sun, 6 Nov 2022 06:59:10 +0000 (12:29 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Sun, 6 Nov 2022 06:59:17 +0000 (12:29 +0530)
commitb5626ae9751f0d82aa04791a21689b289721738e
tree0bc1f7307d49ec45f659c45a1b8efcf679ec83f4
parent05a165bf0434e135c6a853731f92669b4b7fda98
[MLIR] Fix bug in the method constructing semi affine expression from flattened form

Set proper offset to the second element of the index pair when either
lhs or rhs of a local expression is a dimensional identifier, so that
we do not have same index values for more than one local expression.

Reviewed By: springerm, hanchung

Differential Revision: https://reviews.llvm.org/D137389
mlir/lib/IR/AffineExpr.cpp
mlir/test/Dialect/Affine/simplify-structures.mlir