[Mlir-commits] [mlir] [mlir][Index] Fix INT_MIN overflow in CeilDivSOp constant folding (PR #223127)

Yue Huang llvmlistbot at llvm.org
Sat Sep 12 02:19:05 PDT 2026


AdUhTkJm wrote:

Right, that was my fault. I thought that way because that's how my work treats the 'index' type.

Since signed integer overflow is undefined behaviour, can you change your comments that use `INT_MIN / -1` as an example, and briefly explain how `INT_MIN / 2` would work and how it used not to?

https://github.com/llvm/llvm-project/pull/223127


More information about the Mlir-commits mailing list