[all-commits] [llvm/llvm-project] 64b45d: [AMDGPU] Select v_sat_pk_u8_i16

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Wed Mar 15 01:36:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64b45db34a0cd979dae9ca3016e9da517e57b987
      https://github.com/llvm/llvm-project/commit/64b45db34a0cd979dae9ca3016e9da517e57b987
  Author: pvanhout <pierre.vanhoutryve at amd.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/v_sat_pk_u8_i16.ll

  Log Message:
  -----------
  [AMDGPU] Select v_sat_pk_u8_i16

The backend knew about `v_sat_pk_u8_i16` but never made use of it.
This patch adds selection patterns (DAG/GISel) for that instruction.
I think it'll be very rarely used, but at least it's possible to use it.

Solves #58266 (https://github.com/llvm/llvm-project/issues/58266)

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D144729




More information about the All-commits mailing list