Files
clang-p2996/mlir/lib/IR/AffineExpr.cpp
Felix Schneider a4b23638d2 [mlir] Don't assert when simplifying certain AffineExprs (#78855)
Currently, `simplifyMul()` asserts that either `lhs` or `rhs` is
symbolic or constant. This method is called by the overloaded `*`
operator for `AffineExpr`s which leads to a crash when building a
multiplication expression where neither operand is symbolic or constant.
This patch returns a `nullptr` from `simplifyMul()` to signal that the
expression could not be simplified instead.

Fix https://github.com/llvm/llvm-project/issues/75770
2024-03-19 10:43:02 +01:00

65 KiB