[llvm-commits] [llvm] r56306 - in /llvm/branches/ggreif/use-diet: include/llvm/Use.h lib/VMCore/getValue.cpp
Gabor Greif
ggreif at gmail.com
Thu Sep 18 09:14:18 PDT 2008
Author: ggreif
Date: Thu Sep 18 11:14:17 2008
New Revision: 56306
URL: http://llvm.org/viewvc/llvm-project?rev=56306&view=rev
Log:
unleash __builtin_prefetch
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/lib/VMCore/getValue.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=56306&r1=56305&r2=56306&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Thu Sep 18 11:14:17 2008
@@ -155,7 +155,7 @@
*List = this;
}
void removeFromList() {
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
Use **StrippedPrev = stripTag<tagMask>(Prev);
Use *StrippedNext(getNext());
if (isStop(Next))
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/getValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/getValue.cpp?rev=56306&r1=56305&r2=56306&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/getValue.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/getValue.cpp Thu Sep 18 11:14:17 2008
@@ -81,7 +81,7 @@
int Cushion = requiredSteps;
Use *Next(U->Next);
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
Use::NextPtrTag Tag(extractTag<Use::NextPtrTag, Use::tagMaskN>(Next));
Next = stripTag<Use::tagMaskN>(Next);
@@ -104,7 +104,7 @@
default:
Acc = (Acc << 1) | (Tag & 1);
Next = Next->Next;
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
--Cushion;
Tag = extractTag<Use::NextPtrTag, Use::tagMaskN>(Next);
Next = stripTag<Use::tagMaskN>(Next);
@@ -128,7 +128,7 @@
return reinterpret_cast<Value*>(Acc << spareBits);
Next = Next->Next;
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
--Cushion;
Tag = extractTag<Use::NextPtrTag, Use::tagMaskN>(Next);
Next = stripTag<Use::tagMaskN>(Next);
@@ -159,7 +159,7 @@
// fall through
default:
Next = Next->Next;
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
--Cushion;
Tag = extractTag<Use::NextPtrTag, Use::tagMaskN>(Next);
Next = stripTag<Use::tagMaskN>(Next);
@@ -191,7 +191,7 @@
}
Next = Next->Next;
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
U = stripTag<Use::tagMaskN>(U->Next);
Tag = extractTag<Use::NextPtrTag, Use::tagMaskN>(Next);
Next = stripTag<Use::tagMaskN>(Next);
@@ -215,7 +215,7 @@
// fall through
default:
Next = Next->Next;
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
U = stripTag<Use::tagMaskN>(U->Next);
Tag = extractTag<Use::NextPtrTag, Use::tagMaskN>(Next);
Next = stripTag<Use::tagMaskN>(Next);
@@ -237,7 +237,7 @@
return reinterpret_cast<Value*>(Acc << spareBits);
Use *Next(U->Next);
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
Use::NextPtrTag Tag(extractTag<Use::NextPtrTag, Use::tagMaskN>(Next));
Next = stripTag<Use::tagMaskN>(Next);
switch (Tag) {
@@ -256,7 +256,7 @@
}; // class UseWaymark
Value *Use::getValue() const {
- // __builtin_prefetch(Next);
+ __builtin_prefetch(Next);
NextPtrTag Tag(extractTag<NextPtrTag, tagMaskN>(Next));
switch (Tag) {
case fullStopTagN:
More information about the llvm-commits
mailing list