[all-commits] [llvm/llvm-project] e09b35: AMDGPU: Fix fast math log2 f32

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Aug 15 07:49:02 PDT 2023


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

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.log2.ll

  Log Message:
  -----------
  AMDGPU: Fix fast math log2 f32

Apparently afn doesn't allow you to drop the denormal handling
according to OpenCL conformance. This was hidden by losing the flags
during the library linking process. Fast log is still broken and needs
more work.

https://reviews.llvm.org/D157936


  Commit: 4b7b4b945856c46b91ade7b6c4264fe8e258367e
      https://github.com/llvm/llvm-project/commit/4b7b4b945856c46b91ade7b6c4264fe8e258367e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
    M llvm/test/CodeGen/AMDGPU/llvm.log.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log10.ll

  Log Message:
  -----------
  AMDGPU: Fix fast f32 log/log10

OpenCL conformance didn't like interpreting afn as ignore the denormal
handling.

https://reviews.llvm.org/D157940


  Commit: 81b278e613fb3bcdf8053f7a6b5dd2f3881898d2
      https://github.com/llvm/llvm-project/commit/81b278e613fb3bcdf8053f7a6b5dd2f3881898d2
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    R llvm/test/CodeGen/AMDGPU/input-mods.ll
    A llvm/test/CodeGen/AMDGPU/input-mods.r600.ll
    M llvm/test/CodeGen/AMDGPU/llvm.exp2.ll

  Log Message:
  -----------
  AMDGPU: Fix fast f32 exp2

Mirror of the previous log changes, OpenCL conformance doesn't like
interpreting afn as ignore denormal handling but was previously hidden
by flag dropping.


  Commit: d2517616602a1c1918f5fb3fa9b0bc260c887637
      https://github.com/llvm/llvm-project/commit/d2517616602a1c1918f5fb3fa9b0bc260c887637
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-log.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-log10.ll
    M llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-log2.ll
    M llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll

  Log Message:
  -----------
  AMDGPU: Replace log libcalls with log intrinsics


Compare: https://github.com/llvm/llvm-project/compare/cef56b9318e3...d2517616602a


More information about the All-commits mailing list