diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h index 844f0317a1e7..258de19a17b0 100644 --- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h +++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h @@ -26,6 +26,8 @@ class SISubtarget; class SIMachineFunctionInfo; class SIRegisterInfo final : public AMDGPURegisterInfo { + using AMDGPUGenRegisterInfo::getRegUnitWeight; + private: unsigned SGPRSetID; unsigned VGPRSetID;