[all-commits] [llvm/llvm-project] 686942: AMDGPU: Use getSignedTargetConstant for ImmOffset ...

Changpeng Fang via All-commits all-commits at lists.llvm.org
Tue Jan 7 12:02:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68694259b298614f16f87d83a56be1207f36fa53
      https://github.com/llvm/llvm-project/commit/68694259b298614f16f87d83a56be1207f36fa53
  Author: Changpeng Fang <changpeng.fang at amd.com>
  Date:   2025-01-07 (Tue, 07 Jan 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch.ll
    M llvm/test/CodeGen/AMDGPU/flat-scratch.ll

  Log Message:
  -----------
  AMDGPU: Use getSignedTargetConstant for ImmOffset in SelectScratchSVAddr (#121978)

ImmOffset is signed and we will hit an assert with negative ImmOffset
when getTargetConstant is used.

Fixes: SWDEV-506453



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