[mlir][affine] remove divide zero check when simplifer affineMap (#64622) (#68519)
commitdc4786b4877d67d73d3892c45baf6811af0e6f57
authorlong.chen <lipracer@gmail.com>
Sat, 18 Nov 2023 18:14:53 +0000 (19 02:14 +0800)
committerGitHub <noreply@github.com>
Sat, 18 Nov 2023 18:14:53 +0000 (19 02:14 +0800)
treee1903a133c2404923015fc38f5eba4187e7303d7
parentc093383ffadff8dfadfd6bc0ab7107a0e194aa7e
[mlir][affine] remove divide zero check when simplifer affineMap (#64622) (#68519)

When performing constant folding on the affineApplyOp, there is a
division of 0 in the affine map.
[related issue](https://github.com/llvm/llvm-project/issues/64622)

---------

Co-authored-by: Javier Setoain <jsetoain@users.noreply.github.com>
mlir/include/mlir/IR/AffineExprVisitor.h
mlir/include/mlir/IR/AffineMap.h
mlir/lib/Analysis/FlatLinearValueConstraints.cpp
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
mlir/lib/Dialect/Affine/IR/CMakeLists.txt
mlir/lib/IR/AffineExpr.cpp
mlir/lib/IR/AffineMap.cpp
mlir/test/Dialect/Affine/constant-fold.mlir