[llvm] [AMDGPU][True16][CodeGen] update waitcnt for true16 (PR #128927)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 03:27:02 PST 2025
================
@@ -757,30 +769,31 @@ RegInterval WaitcntBrackets::getRegInterval(const MachineInstr *MI,
RegInterval Result;
- unsigned Reg = TRI->getEncodingValue(AMDGPU::getMCReg(Op.getReg(), *ST)) &
- AMDGPU::HWEncoding::REG_IDX_MASK;
+ unsigned Reg = getRegPoint(*ST, Op.getReg(), *TRI);
+ const TargetRegisterClass *RC = TRI->getPhysRegBaseClass(Op.getReg());
+ unsigned Size = TRI->getRegSizeInBits(*RC);
+ // VGPRs are tracked every 16 bits, SGPRs by 32 bits
----------------
arsenm wrote:
Relatedly, we should do something about #105814
https://github.com/llvm/llvm-project/pull/128927
More information about the llvm-commits
mailing list