Files
clang-p2996/mlir/lib/IR/AffineExpr.cpp
Johannes Reifferscheid 8af0860529 AffineExpr: Fix result of d0 + (d0 // -c) * c. (#107530)
Currently, this is rewritten to d0 mod -c. However, we do not support
modulo with a negative RHS in our lowering passes, so this triggers
undefined behavior.

It would be better to not have these ad hoc simplifications at all, but
I guess that ship has sailed.
2024-09-06 12:53:33 +02:00

66 KiB