[all-commits] [llvm/llvm-project] 0f5206: [AMDGPU] Price scalar integer to fp casts by sourc...

Dmitry Sidorov via All-commits all-commits at lists.llvm.org
Wed Sep 30 13:43:44 PDT 2026


  Branch: refs/heads/users/mrsidims/fix-amdgpu-scalar-int-fp-cast-cost
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f5206b1a48dc4548656b7af0e8ca84bbf53000a
      https://github.com/llvm/llvm-project/commit/0f5206b1a48dc4548656b7af0e8ca84bbf53000a
  Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AMDGPU/narrow-int-to-bfloat.ll
    M llvm/test/Analysis/CostModel/AMDGPU/narrow-int-to-fp.ll

  Log Message:
  -----------
  [AMDGPU] Price scalar integer to fp casts by source width and sign

Scalar sources between a byte and 31 bits fell to the default cost of one
while the matching vector lanes were already priced, which skewed the
difference SLP weighs a bundle against. Such a source is extended before
the conversion, and what the extension takes depends on the width, on the
sign and on whether the subtarget has SDWA and 16 bit instructions.
Sources narrower than a byte are left alone, because their vector form is
not priced either.


  Commit: 7943bf8b3ca89b749ff20807f0088ca5cae4fbb5
      https://github.com/llvm/llvm-project/commit/7943bf8b3ca89b749ff20807f0088ca5cae4fbb5
  Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp

  Log Message:
  -----------
  format


  Commit: 2ce72408d26de15ab30c5b0e643e08987caf28b2
      https://github.com/llvm/llvm-project/commit/2ce72408d26de15ab30c5b0e643e08987caf28b2
  Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/slp-int-to-fp.ll

  Log Message:
  -----------
  update slp-int-to-fp.ll


Compare: https://github.com/llvm/llvm-project/compare/149a90830794...2ce72408d26d

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