Rejected r156374: Ordinary PR1255 patch. Due to clang-x86_64-debian-fnt buildbot...
[oota-llvm.git] / include / llvm / ConstantRangesSet.h
index a3f082f822874be41d2253fc40ff15ca0e8f642c..2d3ee8bafafe733eccd6770aad986487df43af34 100644 (file)
@@ -48,15 +48,8 @@ class ConstantRangesSet {
   Constant *Array;
 public:
   
-  bool IsWide;
-  
   // implicit
-  ConstantRangesSet(Constant *V) : Array(V) {
-    ArrayType *ArrTy = cast<ArrayType>(Array->getType());
-    VectorType *VecTy = cast<VectorType>(ArrTy->getElementType());
-    IntegerType *IntTy = cast<IntegerType>(VecTy->getElementType());
-    IsWide = IntTy->getBitWidth() > 64;    
-  }
+  ConstantRangesSet(Constant *V) : Array(V) {}
   
   operator Constant*() { return Array; }
   operator const Constant*() const { return Array; }
@@ -237,13 +230,6 @@ public:
     return cast<ArrayType>(Array->getType())->getNumElements();
   }
   
-  bool isWideNumberFormat() const { return IsWide; }
-  
-  bool isSingleNumber(unsigned idx) const {
-    Constant *CV = Array->getAggregateElement(idx);
-    return cast<VectorType>(CV->getType())->getNumElements() == 1;
-  }
-  
   /// Returns set the size, that equals number of all values + sizes of all
   /// ranges.
   /// Ranges set is considered as flat numbers collection.