[all-commits] [llvm/llvm-project] a70006: AMDGPU: Replace some libcalls with intrinsics

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Aug 14 15:23:51 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a70006c4c581ef3f9b355ec78ec38023faada6c6
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-exp.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-exp2.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-fma.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-fmax.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-fmin.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-mad.ll
    M llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll

  Log Message:
  AMDGPU: Replace some libcalls with intrinsics

OpenCL loses fast math information by going through libcall wrappers
around intrinsics.

Do this to preserve call site flags which are lost when inlining. It's
not safe in general to propagate flags during inline, so avoid dealing
with this by just special casing some of the useful calls.

More information about the All-commits mailing list