[all-commits] [llvm/llvm-project] 580f70: [mlir] Check for int limits when converting gpu di...
Max191 via All-commits
all-commits at lists.llvm.org
Tue May 20 16:13:27 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 580f70e070423d79a909fc61f744cb853bacdd37
https://github.com/llvm/llvm-project/commit/580f70e070423d79a909fc61f744cb853bacdd37
Author: Max191 <44243577+Max191 at users.noreply.github.com>
Date: 2025-05-20 (Tue, 20 May 2025)
Changed paths:
M mlir/lib/Conversion/GPUCommon/IndexIntrinsicsOpLowering.h
M mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir
Log Message:
-----------
[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 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list