[AMDGPU] NFC: Add schedule-relaxed-occupancy to relax occupancy targets for wave...
authorJeffrey Byrnes <Jeffrey.Byrnes@amd.com>
Tue, 27 Jun 2023 15:40:15 +0000 (08:40 -0700)
committerJeffrey Byrnes <Jeffrey.Byrnes@amd.com>
Wed, 28 Jun 2023 15:12:31 +0000 (08:12 -0700)
commitbe92848ea4ef71280d2bb86e04d548dad2def94b
tree6e1fdafe9a590975f5e34ab488a8ba4c9b9a7ebd
parent00971f08604b29437af806263737a131bab1cf49
[AMDGPU] NFC: Add schedule-relaxed-occupancy to relax occupancy targets for wave-limited/membound kernels

Default scheduling behavior for these types of kernels is to chase high occupancy goals with scheduling heuristics, but allow occupancy drops if we are unable to reach the target.

This (experimental, off-by-default) feature relaxes occupancy target from the beginning, which enables scheduler to produce better ILP schedules.

Differential Revision: https://reviews.llvm.org/D153925

Change-Id: I112833214e2db869704591f4df3c4574d0fcbb1b
llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
llvm/test/CodeGen/AMDGPU/schedule-relaxed-occupancy.ll [new file with mode: 0644]