summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Besard <tim.besard@gmail.com>2011-11-02 15:01:57 +0100
committerTim Besard <tim.besard@gmail.com>2011-11-02 15:01:57 +0100
commitba67ca081a78a9dd6fb5f36f8d2bc2dea0f5224a (patch)
tree8a729248211c3c935dfd7a2d74efcadb060f8087
parent0f941106001034a3f579b4ea722014f48e4391c8 (diff)
Prefetching.
-rw-r--r--src/Run.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Run.cpp b/src/Run.cpp
index 399f516..dab1d11 100644
--- a/src/Run.cpp
+++ b/src/Run.cpp
@@ -409,7 +409,8 @@ static benchmark chase_pointers(int64 chains_per_thread, // memory loading per t
c.mov(positions[i], ptr(positions[i], offsetof(Chain, next)));
// Prefetch next
- // TODO
+ if (prefetch)
+ c.prefetch(ptr(positions[i]), AsmJit::PREFETCH_T0);
}
// Wait