[llvm-commits] [llvm] r56951 - /llvm/branches/ggreif/use-diet/include/llvm/Use.h
Gabor Greif
ggreif at gmail.com
Thu Oct 2 08:24:56 PDT 2008
Author: ggreif
Date: Thu Oct 2 10:24:56 2008
New Revision: 56951
URL: http://llvm.org/viewvc/llvm-project?rev=56951&view=rev
Log:
simplify
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
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=56951&r1=56950&r2=56951&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Thu Oct 2 10:24:56 2008
@@ -112,7 +112,7 @@
, tagMaskN = tagThree };
static bool isStopTag(NextPtrTag T) {
- bool P[4] = { true, false, false, true };
+ const bool P[4] = { true, false, false, true };
return P[T];
}
public:
@@ -157,10 +157,9 @@
__builtin_prefetch(Next);
Use **StrippedPrev = stripTag<tagMask>(Prev);
Use *StrippedNext(getNext());
- if (!isStop(Next) && isStop(*StrippedPrev))
- *StrippedPrev = stripTag<tagMaskN>(Next);
- else
- *StrippedPrev = Next;
+ *StrippedPrev = !isStop(Next) && isStop(*StrippedPrev)
+ ? stripTag<tagMaskN>(Next)
+ : Next;
if (StrippedNext) StrippedNext->setPrev(StrippedPrev);
}
More information about the llvm-commits
mailing list