1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Simplify the expression for MVT::isExtendedValueType.

llvm-svn: 37733
This commit is contained in:
Dan Gohman 2007-06-26 15:20:04 +00:00
parent fb8c9beba3
commit 99878e810a

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