[llvm] [AMDGPU][True16][CodeGen] update waitcnt for true16 (PR #128927)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 12:39:06 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
----------------
broxigarchen wrote:
Just realized https://github.com/llvm/llvm-project/commit/d6c0839c9c823754fb84e47c5bacf1a3b3d0f618 is merged. Rebased again
https://github.com/llvm/llvm-project/pull/128927
More information about the llvm-commits
mailing list