AMDGPU: Don't handle invalid reg classes in helper functions

No tests hit these and it would be better to have checks like
this explicit where they are used.

llvm-svn: 248655
This commit is contained in:
Matt Arsenault 2015-09-26 04:53:30 +00:00
parent f88e4fabb5
commit 6e28010215
1 changed files with 0 additions and 6 deletions

View File

@ -48,17 +48,11 @@ public:
/// \returns true if this class contains only SGPR registers
bool isSGPRClass(const TargetRegisterClass *RC) const {
if (!RC)
return false;
return !hasVGPRs(RC);
}
/// \returns true if this class ID contains only SGPR registers
bool isSGPRClassID(unsigned RCID) const {
if (static_cast<int>(RCID) == -1)
return false;
return isSGPRClass(getRegClass(RCID));
}