[all-commits] [llvm/llvm-project] b965f2: [AMDGPU] Treat GEP offsets as signed in AMDGPUProm...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Wed Sep 10 02:32:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b965f265388abd6abba7d553927ba7c154026af2
      https://github.com/llvm/llvm-project/commit/b965f265388abd6abba7d553927ba7c154026af2
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    A llvm/test/CodeGen/AMDGPU/promote-alloca-negative-index.ll

  Log Message:
  -----------
  [AMDGPU] Treat GEP offsets as signed in AMDGPUPromoteAlloca (#157682)

[AMDGPU] Treat GEP offsets as signed in AMDGPUPromoteAlloca

AMDGPUPromoteAlloca can transform i32 GEP offsets that operate on
allocas into i64 extractelement indices. Before this patch, negative GEP
offsets would be zero-extended, leading to wrong extractelement indices
with values around (2**32-1).

This fixes failing LlvmLibcCharacterConverterUTF32To8Test tests for
AMDGPU.



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