[all-commits] [llvm/llvm-project] f01fdb: [AMDGPU] Price narrow integer to bfloat vector cas...
Dmitry Sidorov via All-commits
all-commits at lists.llvm.org
Wed Sep 30 13:43:38 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f01fdbb2991a10ec7f02fecb3d30fcf4fc639db8
https://github.com/llvm/llvm-project/commit/f01fdbb2991a10ec7f02fecb3d30fcf4fc639db8
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
Log Message:
-----------
[AMDGPU] Price narrow integer to bfloat vector casts (#225342)
A vector lane of 9 to 15 or 17 to 31 bits converted to bfloat got the generic cost, which leaves out the rounding. Such a lane is converted to f32 first like any other narrow lane, so price it as the f32 conversion of the same source plus the rounding. Lanes of 8 and 16 bits keep their cost.
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