diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h index 2409cd24676a..5a4e3251b391 100644 --- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h +++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h @@ -203,8 +203,7 @@ public: return isVGPR(MRI, Reg) || isAGPR(MRI, Reg); } - virtual bool - isDivergentRegClass(const TargetRegisterClass *RC) const override { + bool isDivergentRegClass(const TargetRegisterClass *RC) const override { return !isSGPRClass(RC); }