[llvm-branch-commits] [llvm-branch] r109340 - /llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp

Gabor Greif ggreif at gmail.com
Sat Jul 24 07:17:43 PDT 2010


Author: ggreif
Date: Sat Jul 24 09:17:43 2010
New Revision: 109340

URL: http://llvm.org/viewvc/llvm-project?rev=109340&view=rev
Log:
precompute 21 tags

Modified:
    llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp

Modified: llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp?rev=109340&r1=109339&r2=109340&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Sat Jul 24 09:17:43 2010
@@ -167,13 +167,17 @@
 
 template <>
 Use *Use::initTags<3>(Use * const Start, Use *Stop, ptrdiff_t Done) {
-  while (Done < 8) {
+  while (Done < 21) {
     if (Start == Stop--)
       return Start;
-    static const PrevPtrTag tags[8] = { fullStop64Tag, xStop64Tag, yStop64Tag,
-                                        stop64Tag, zero64Tag, xStop64Tag,
-                                        one64Tag, stop64Tag
-                                      };
+    static const PrevPtrTag tags[21] = { fullStop64Tag, xStop64Tag, yStop64Tag,
+                                         stop64Tag, zero64Tag, xStop64Tag,
+                                         one64Tag, stop64Tag, zero64Tag,
+                                         yStop64Tag, two64Tag, yStop64Tag,
+                                         zero64Tag, three64Tag, stop64Tag,
+                                         three64Tag, three64Tag, stop64Tag,
+                                         two64Tag, zero64Tag, stop64Tag
+                                       };
     Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(tags[Done++]));
     Stop->Val = 0;
   }





More information about the llvm-branch-commits mailing list