[all-commits] [llvm/llvm-project] 0d8a4a: [CodeGen] Use validated wave counts for AMDGPU spi...
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Thu Sep 24 11:30:48 PDT 2026
Branch: refs/heads/users/yxsamliu/pgo-wave-profiled-spill
Home: https://github.com/llvm/llvm-project
Commit: 0d8a4a66cd0a78e17cba9bbb23dc8697f40040ad
https://github.com/llvm/llvm-project/commit/0d8a4a66cd0a78e17cba9bbb23dc8697f40040ad
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M llvm/lib/CodeGen/SpillPlacement.cpp
A llvm/test/CodeGen/AMDGPU/wave-profile-spill.mir
Log Message:
-----------
[CodeGen] Use validated wave counts for AMDGPU spill costs
Lane-based block frequencies can understate the cost of a spill in
divergent GPU code: a wave still executes a block with only some lanes
active. Use measured block-wave counts to weight SpillPlacement's costs
relative to the original entry-wave count.
Opt in on AMDGPU only. Accept a measured count only when its IR block
maps uniquely to a machine block with matching predecessors and
successors. Keep the existing MBFI cost for unmeasured or rejected
blocks, and leave branch probabilities and general BFI unchanged.
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