[llvm] [AMDGPU] Add support for GFX12 expert scheduling mode 2 (PR #170319)
Stephen Thomas via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 03:18:15 PST 2025
================
@@ -1842,6 +1992,24 @@ bool WaitcntGeneratorGFX12Plus::createNewWaitcnt(
dbgs() << "New Instr: " << *SWaitInst << '\n');
}
+ if (Wait.hasWaitDepctr()) {
+ assert(IsExpertMode);
+ unsigned Enc = AMDGPU::DepCtr::encodeFieldVmVsrc(Wait.VmVsrc, *ST);
+ Enc = AMDGPU::DepCtr::encodeFieldVaVdst(Enc, Wait.VaVdst);
+
+ if (Enc != 0xffff) {
----------------
stepthomas wrote:
See above
https://github.com/llvm/llvm-project/pull/170319
More information about the llvm-commits
mailing list