Simplify the expression for MVT::isExtendedValueType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2007-06-26 15:20:04 +00:00
parent 71d7794856
commit 25aceacb29

View File

@ -92,7 +92,7 @@ namespace MVT { // MVT = Machine Value Types
/// MVT::isExtendedValueType - Test if the given ValueType is extended
/// (as opposed to being simple).
static inline bool isExtendedValueType(ValueType VT) {
return VT & ~SimpleTypeMask;
return VT > SimpleTypeMask;
}
/// MVT::isInteger - Return true if this is an integer, or a vector integer