[all-commits] [llvm/llvm-project] 4a9bc5: AMDGPU/GlobalISel: Add integer med3 combines

petar-avramovic via All-commits all-commits at lists.llvm.org
Tue Apr 27 02:54:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a9bc59867b64a24ff628c5a7ab2ca5e727dd9c1
      https://github.com/llvm/llvm-project/commit/4a9bc59867b64a24ff628c5a7ab2ca5e727dd9c1
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCombine.td
    M llvm/lib/Target/AMDGPU/AMDGPUGISel.td
    M llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    A llvm/test/CodeGen/AMDGPU/GlobalISel/regbankcombiner-smed3.mir
    A llvm/test/CodeGen/AMDGPU/GlobalISel/regbankcombiner-umed3.mir
    A llvm/test/CodeGen/AMDGPU/GlobalISel/smed3.ll
    A llvm/test/CodeGen/AMDGPU/GlobalISel/umed3.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Add integer med3 combines

Add signed and unsigned integer version of med3 combine.
Source pattern is min(max(Val, K0), K1) or max(min(Val, K1), K0)
where K0 and K1 are constants and K0 <= K1. Destination is med3
that corresponds to signedness of min/max in source.

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




More information about the All-commits mailing list