llvm-project
580f70e0 - [mlir] Check for int limits when converting gpu dims (#140747)

Commit
272 days ago
[mlir] Check for int limits when converting gpu dims (#140747) When the upper_bound of a gpu dim op (like `gpu.block_dim`) is the maximum i32 integer value, the op conversion for it causes overflow by adding 1 to convert the bound from closed to open. This fixes the bug by clamping the open bound to the maximum i32 value. --------- Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
Author
Parents
Loading