[all-commits] [llvm/llvm-project] 1f615b: AMDGPU: Modernize log codegen tests

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Jun 12 18:29:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f615b502c6897e291b4ac79bb28e4f2644d6ab5
      https://github.com/llvm/llvm-project/commit/1f615b502c6897e291b4ac79bb28e4f2644d6ab5
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-06-12 (Mon, 12 Jun 2023)

  Changed paths:
    R llvm/test/CodeGen/AMDGPU/llvm.log.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log.ll
    R llvm/test/CodeGen/AMDGPU/llvm.log10.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log10.ll
    R llvm/test/CodeGen/AMDGPU/llvm.log2.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log2.ll

  Log Message:
  -----------
  AMDGPU: Modernize log codegen tests


  Commit: d0923a7739c7ce528ce91ea3105d5033d587f2f7
      https://github.com/llvm/llvm-project/commit/d0923a7739c7ce528ce91ea3105d5033d587f2f7
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-06-12 (Mon, 12 Jun 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-flog10.mir
    M llvm/test/CodeGen/AMDGPU/llvm.log10.ll

  Log Message:
  -----------
  AMDGPU: Correct constants used in fast math log expansion

The division between float constants was done with less
precision. Performing the divide in double and truncating to float
provides the same value as used in the library fast math expansion.


Compare: https://github.com/llvm/llvm-project/compare/10717f92941d...d0923a7739c7


More information about the All-commits mailing list