[llvm-commits] [llvm] r56788 - /llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp

Gabor Greif ggreif at gmail.com
Mon Sep 29 08:51:09 PDT 2008


Author: ggreif
Date: Mon Sep 29 10:51:07 2008
New Revision: 56788

URL: http://llvm.org/viewvc/llvm-project?rev=56788&view=rev
Log:
update the correct fields
this makes InstCombine/2006-02-07-SextZextCrash to pass again

Modified:
    llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp

Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp?rev=56788&r1=56787&r2=56788&view=diff

==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Mon Sep 29 10:51:07 2008
@@ -31,10 +31,9 @@
       (char*&)*stripTag<tagMask>(Prev) += dist;
       (char*&)*stripTag<tagMask>(RHS.Prev) -= dist;
       if (real1)
-	(char*&)valid1->Next += dist;
+	(char*&)valid1->Prev += dist;
       if (real2)
-        (char*&)valid2->Next -= dist;
-
+        (char*&)valid2->Prev -= dist;
     }
 
     // swap the members
@@ -43,29 +42,6 @@
     RHS.Prev = transferTag<tagMask>(RHS.Prev, stripTag<tagMask>(Prev));
     Prev = Prev1;
   }
-  /*  Value *V1(Val1);
-  Value *V2(RHS.Val1);
-  if (V1 != V2) {
-    if (V1) {
-      removeFromList();
-    }
-
-    if (V2) {
-      RHS.removeFromList();
-      Val1 = V2;
-      V2->addUse(*this);
-    } else {
-      Val1 = 0;
-    }
-
-    if (V1) {
-      RHS.Val1 = V1;
-      V1->addUse(RHS);
-    } else {
-      RHS.Val1 = 0;
-    }
-  }
-  */
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list