[all-commits] [llvm/llvm-project] f757da: [AMDGPU] Price scalar integer to fp casts by sourc...
Dmitry Sidorov via All-commits
all-commits at lists.llvm.org
Tue Sep 29 15:08:21 PDT 2026
Branch: refs/heads/users/mrsidims/fix-amdgpu-scalar-int-fp-cast-cost
Home: https://github.com/llvm/llvm-project
Commit: f757daad4bb79d10e211d5d023d929f6281ed858
https://github.com/llvm/llvm-project/commit/f757daad4bb79d10e211d5d023d929f6281ed858
Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
Date: 2026-09-29 (Tue, 29 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: 7b522be6d62256c98c4049a4fb8dd2e1903e56ba
https://github.com/llvm/llvm-project/commit/7b522be6d62256c98c4049a4fb8dd2e1903e56ba
Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
Log Message:
-----------
format
Commit: 57d266a905722173f88d292960a2c0d6eeab4193
https://github.com/llvm/llvm-project/commit/57d266a905722173f88d292960a2c0d6eeab4193
Author: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
Date: 2026-09-29 (Tue, 29 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/5ddf2ffcd485...57d266a90572
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