No tests hit these and it would be better to have checks like
this explicit where they are used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248655
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \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));
}