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

Gabor Greif ggreif at gmail.com
Fri Jul 23 10:03:34 PDT 2010


Author: ggreif
Date: Fri Jul 23 12:03:34 2010
New Revision: 109237

URL: http://llvm.org/viewvc/llvm-project?rev=109237&view=rev
Log:
implement early-outs

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=109237&r1=109236&r2=109237&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Fri Jul 23 12:03:34 2010
@@ -60,11 +60,15 @@
         switch (Current->Prev.getInt()) {
 				case 0: ++Current; Offset = 4; break;
         case xStop64Tag: ++Current; Offset = 1; break;
-        case yStop64Tag: ++Current; Offset = 2; break;
+        case yStop64Tag: return Current + 3;
 				}
         // fall thru...
       case xStop64Tag:
+        if (Current->Prev.getInt() == fullStop64Tag)
+          return Current + 1;
       case yStop64Tag:
+        if (Current->Prev.getInt() == xStop64Tag)
+          return Current + 2;
         while (true) {
           unsigned Tag = Current->Prev.getInt();
           switch (Tag) {





More information about the llvm-branch-commits mailing list