[llvm] [AMDGPU] Add support for GFX12 expert scheduling mode 2 (PR #170319)
Nicolai Hähnle via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 2 11:11:36 PST 2025
================
@@ -2741,7 +2979,14 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
AMDGPU::IsaVersion IV = AMDGPU::getIsaVersion(ST->getCPU());
if (ST->hasExtendedWaitCounts()) {
- MaxCounter = NUM_EXTENDED_INST_CNTS;
+ if (ST->hasSoftwareHazardMode() &&
+ (MF.getFunction()
+ .getFnAttribute("amdgpu-software-hazard-mode")
----------------
nhaehnle wrote:
That almost makes it feel like it has to be a subtarget feature?
https://github.com/llvm/llvm-project/pull/170319
More information about the llvm-commits
mailing list