[MLIR] Fix bug in addAffineParallelOpDomain upper bound constraint
authorUday Bondhugula <uday@polymagelabs.com>
Sun, 26 Feb 2023 14:56:08 +0000 (20:26 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Tue, 28 Feb 2023 04:58:24 +0000 (10:28 +0530)
commita2802dd24f62c14ae00d1691bb19a20d130ec68d
tree3398b4035c4968597d9b32f37993c18731358c4e
parentdbfc037e5017d5784063a666f31dadc5cbc66723
[MLIR] Fix bug in addAffineParallelOpDomain upper bound constraint

Fix upper bound constraint addition in addAffineParallelOpDomain; it was
off by one in the case of constants.

Differential Revision: https://reviews.llvm.org/D144836
mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp
mlir/test/Transforms/memref-dependence-check.mlir