[all-commits] [llvm/llvm-project] f48e6b: [NVPTX] NVVMIntrRange: Handle maxntid > UINT32_MAX...

Justin Lebar via All-commits all-commits at lists.llvm.org
Tue Jun 2 18:30:45 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f48e6b81c3acb7007aa94ac768c95122796df08c
      https://github.com/llvm/llvm-project/commit/f48e6b81c3acb7007aa94ac768c95122796df08c
  Author: Justin Lebar <justin.lebar at gmail.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVVMIntrRange.cpp
    M llvm/test/CodeGen/NVPTX/intr-range.ll

  Log Message:
  -----------
  [NVPTX] NVVMIntrRange: Handle maxntid > UINT32_MAX. (#201245)

Previously we computed the overall maxntid and downcast it to unsigned
int.  This is not correct; it can be larger than UINT32_MAX.

This would cause reads of tid.xyz and ntid.xyz to have incorrect range
information.  Also if maxntid was an exact multiple of 2^32, we'd get an
ICE (because we'd incorrectly think that maxntid is 0).



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