[all-commits] [llvm/llvm-project] 2ae9c9: [AMDGPU] Promote uniform i16 ABS to i32 (#204526)

Lukas Sommer via All-commits all-commits at lists.llvm.org
Wed Jun 24 07:08:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ae9c99a738e78b8713e671b655ea3930439dd91
      https://github.com/llvm/llvm-project/commit/2ae9c99a738e78b8713e671b655ea3930439dd91
  Author: Lukas Sommer <lukas.sommer at amd.com>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h
    M llvm/test/CodeGen/AMDGPU/absdiff.ll

  Log Message:
  -----------
  [AMDGPU] Promote uniform i16 ABS to i32 (#204526)

GlobalISel already expands uniform `i16` `G_ABS` to sign-extend to i32
and the native `s_abs` instruction.

This adds a similar expansion as DAGCombiner pattern, promoting uniform
`i16` `ABS` to `i32` that can use `s_abs`.

---------

Signed-off-by: Lukas Sommer <lukas.sommer at amd.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