[all-commits] [llvm/llvm-project] d42ce4: [AMDGPU] Model the cost of the expanded integer to...

Dmitry Sidorov via All-commits all-commits at lists.llvm.org
Tue Sep 15 02:33:35 PDT 2026


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

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AMDGPU/cast.ll
    M llvm/test/Analysis/CostModel/AMDGPU/expanded-int-fp-casts.ll
    M llvm/test/Analysis/CostModel/AMDGPU/fptosi.ll
    M llvm/test/Analysis/CostModel/AMDGPU/fptoui.ll

  Log Message:
  -----------
  [AMDGPU] Model the cost of the expanded integer to/from floating point casts

No instruction converts to or from a 64 bit integer, and narrow vector
lanes are converted one at a time. Price these expansions by the FP64
rate, sdwa and 16 bit instruction support, and price i33 to i63 like
i64 and bf16 like f32 plus rounding.

Assisted-by: Claude Code Opus 5



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