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

Gabor Greif ggreif at gmail.com
Sat Jul 24 12:20:32 PDT 2010


Author: ggreif
Date: Sat Jul 24 14:20:32 2010
New Revision: 109351

URL: http://llvm.org/viewvc/llvm-project?rev=109351&view=rev
Log:
another microoptimization, now we are in winning terrain

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=109351&r1=109350&r2=109351&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Sat Jul 24 14:20:32 2010
@@ -52,10 +52,13 @@
 const Use *Use::getImpliedUser<3>(const Use *Current) {
   while (true) {
     unsigned Tag = (Current++)->Prev.getInt();
-    if (Tag < stop64Tag)
-      continue;
     ptrdiff_t Offset;
     switch (Tag) {
+      case zero64Tag:
+      case one64Tag:
+      case two64Tag:
+      case three64Tag:
+        continue;
       case stop64Tag:
         switch (Current->Prev.getInt()) {
           case 0: ++Current; Offset = 4; goto digits;





More information about the llvm-branch-commits mailing list