[all-commits] [llvm/llvm-project] fb06ce: AMDGPU: Improve cost handling of fma/fmuladd

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Jul 29 01:16:06 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-fix-fma-fmuladd-costs
  Home:   https://github.com/llvm/llvm-project
  Commit: fb06ce5f0cb7ceb78f6104315835c259e96b3706
      https://github.com/llvm/llvm-project/commit/fb06ce5f0cb7ceb78f6104315835c259e96b3706
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-29 (Mon, 29 Jul 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AMDGPU/fma.ll
    M llvm/test/Analysis/CostModel/AMDGPU/fmuladd.ll

  Log Message:
  -----------
  AMDGPU: Improve cost handling of fma/fmuladd

We were overcounting the cost of fast f32 FMA. Also address todo
and handle fmuladd (which I'm just assuming lowers to FMA, the slow FMA
expansion is about as fast on slow targets anyway).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list