[all-commits] [llvm/llvm-project] b233eb: AMDGPU: Add baseline test for f16 fmed3 matching

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu May 18 00:45:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b233eb70cd82ca3c320fac4bb8c2cccd1fe97696
      https://github.com/llvm/llvm-project/commit/b233eb70cd82ca3c320fac4bb8c2cccd1fe97696
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    A llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.f16.ll

  Log Message:
  -----------
  AMDGPU: Add baseline test for f16 fmed3 matching


  Commit: 8f3e64624c2e49b61ee578aec493260a59a35e80
      https://github.com/llvm/llvm-project/commit/8f3e64624c2e49b61ee578aec493260a59a35e80
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
    M llvm/test/Transforms/InstCombine/AMDGPU/fmed3.ll

  Log Message:
  -----------
  AMDGPU: Fold fmed3 of fpext sources to f16 fmed3

InstCombine already does this for minnum/maxnum. If we
also apply this to fmed3, we don't need to explicitly
use 16-bit fmed3 if we're not sure the target
supports 16-bit instructions yet.


Compare: https://github.com/llvm/llvm-project/compare/7f54b38e28b3...8f3e64624c2e


More information about the All-commits mailing list