[llvm] [AMDGPU][CodeGen][True16] Track waitcnt as vgpr32 instead of vgpr16 for D16 Instructions in GFX11 (PR #157795)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 00:18:34 PDT 2025
================
@@ -845,6 +845,15 @@ RegInterval WaitcntBrackets::getRegInterval(const MachineInstr *MI,
assert(Result.first >= 0 && Result.first < SQ_MAX_PGM_VGPRS);
assert(Size % 16 == 0);
Result.second = Result.first + (Size / 16);
+
+ if (Size == 16 && Context->ST->has16bitD16HWBug()) {
----------------
jayfoad wrote:
The feature name mentions D16, but you are applying the workaround to all 16-bit VGPR operands, right?
https://github.com/llvm/llvm-project/pull/157795
More information about the llvm-commits
mailing list