Simplify the expression for MVT::isExtendedValueType.
authorDan Gohman <gohman@apple.com>
Tue, 26 Jun 2007 15:20:04 +0000 (15:20 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 26 Jun 2007 15:20:04 +0000 (15:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37733 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ValueTypes.h

index 743a1f64dd76a06a2cc7236bae7b0b3ded474f61..8582323a521dc7ec39a64d267b61325e6819d454 100644 (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