[Mlir-commits] [mlir] [mlir][arith] fix wrong floordivsi fold (#83079) (PR #83248)

Jakub Kuderski llvmlistbot at llvm.org
Sun Mar 3 10:09:34 PST 2024


kuhar wrote:

@lipracer Another idea: we could perform the division on APInt with more bits than the bitwidth of the folded integer type. Maybe this way it'd be easier to detect overflow. And then once we are confident there's no overflow, truncate it back to the desired bitwidth.

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


More information about the Mlir-commits mailing list