From ba67ca081a78a9dd6fb5f36f8d2bc2dea0f5224a Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 2 Nov 2011 15:01:57 +0100 Subject: Prefetching. --- src/Run.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3