From: Dan Gohman Date: Tue, 26 Jun 2007 15:20:04 +0000 (+0000) Subject: Simplify the expression for MVT::isExtendedValueType. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25aceacb29899b7dff02c657da97469314c9cdd1;p=oota-llvm.git Simplify the expression for MVT::isExtendedValueType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37733 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 743a1f64dd7..8582323a521 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -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