precompute 20 tags
authorGabor Greif <ggreif@gmail.com>
Mon, 19 Jul 2010 14:48:15 +0000 (14:48 +0000)
committerGabor Greif <ggreif@gmail.com>
Mon, 19 Jul 2010 14:48:15 +0000 (14:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108695 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Use.cpp

index c88ad16f60f771ed6f89dac74d5079722577f1b7..fec710b39459b2d1cccfe9d80afcec71ab724fae 100644 (file)
@@ -86,11 +86,17 @@ const Use *Use::getImpliedUser() const {
 //===----------------------------------------------------------------------===//
 
 Use *Use::initTags(Use * const Start, Use *Stop, ptrdiff_t Done) {
-  while (Done < 6) {
+  while (Done < 20) {
     if (Start == Stop--)
       return Start;
-    static const PrevPtrTag tags[6] = { fullStopTag, oneDigitTag, stopTag,
-                                        oneDigitTag, oneDigitTag, stopTag };
+    static const PrevPtrTag tags[20] = { fullStopTag, oneDigitTag, stopTag,
+                                         oneDigitTag, oneDigitTag, stopTag,
+                                         zeroDigitTag, oneDigitTag, oneDigitTag,
+                                         stopTag, zeroDigitTag, oneDigitTag,
+                                         zeroDigitTag, oneDigitTag, stopTag,
+                                         oneDigitTag, oneDigitTag, oneDigitTag,
+                                         oneDigitTag, stopTag
+                                       };
     Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(tags[Done++]));
     Stop->Val = 0;
   }