[llvm-branch-commits] [llvm-branch] r202032 - more simplifications

Gabor Greif ggreif at gmail.com
Mon Feb 24 05:33:04 PST 2014


Author: ggreif
Date: Mon Feb 24 07:33:04 2014
New Revision: 202032

URL: http://llvm.org/viewvc/llvm-project?rev=202032&view=rev
Log:
more simplifications

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

Modified: llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp?rev=202032&r1=202031&r2=202032&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp Mon Feb 24 07:33:04 2014
@@ -180,16 +180,13 @@ Use *Use::initTags<8>(Use * const Start,
   }
 
   ptrdiff_t Count = Done;
-  while (Start != Stop) {
-    --Stop;
+  while (Start != Stop--) {
     if (!Count) {
       new(Stop) Use(stopTag3);
       ++Done;
-      Count = Done;
       if (Start == Stop--) return Start;
       new(Stop) Use(skipStopTag3);
       ++Done;
-      Count = Done;
       if (Start == Stop--) return Start;
       new(Stop) Use(skip2StopTag3);
       ++Done;





More information about the llvm-branch-commits mailing list