[llvm-commits] [llvm] r49837 - in /llvm/branches/ggreif/use-diet: include/llvm/Use.h include/llvm/Value.h lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Wed Apr 16 18:02:38 PDT 2008
Author: ggreif
Date: Wed Apr 16 20:02:37 2008
New Revision: 49837
URL: http://llvm.org/viewvc/llvm-project?rev=49837&view=rev
Log:
go forward and attack: drop Use::U
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/include/llvm/Value.h
llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
Modified: llvm/branches/ggreif/use-diet/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Use.h?rev=49837&r1=49836&r2=49837&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Wed Apr 16 20:02:37 2008
@@ -116,7 +116,6 @@
Use *getNext() const { return Next; }
private:
- User *U;
Use *Next, **Prev;
Value *Val;
Modified: llvm/branches/ggreif/use-diet/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Value.h?rev=49837&r1=49836&r2=49837&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Value.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Value.h Wed Apr 16 20:02:37 2008
@@ -225,8 +225,6 @@
void Use::init(Value *V, User *user) {
Val = transferTag(V);
- U = user;
- assert((!U || U == getUser()) && "Use::init discrepancy?");
if (V) V->addUse(*this);
}
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=49837&r1=49836&r2=49837&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Wed Apr 16 20:02:37 2008
@@ -57,7 +57,6 @@
while (Start != Stop)
{
--Stop;
- Stop->U = 0;
if (!Count) {
Stop->Val = reinterpret_cast<Value*>(Done == 0 ? fullStopTag : stopTag);
++Done;
@@ -100,13 +99,12 @@
//===----------------------------------------------------------------------===//
User *Use::getUser() const {
- const Use* End = getImpliedUser();
+ const Use *End = getImpliedUser();
User *She = static_cast<const AugmentedUse*>(End - 1)->ref;
She = extractTag<Tag, tagOne>(She)
? llvm::stripTag<tagOne>(She)
: reinterpret_cast<User*>(const_cast<Use*>(End));
- assert((!U || U == She) && "Implicit User differs?");
return She;
}
More information about the llvm-commits
mailing list