From: Philippe Waroquiers Date: Fri, 15 May 2015 09:38:54 +0000 (+0000) Subject: micro-opt: add an UNLIKELY X-Git-Tag: svn/VALGRIND_3_11_0~387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba3235fb9132493a4000a6b3aa9f734a4cd4044f;p=thirdparty%2Fvalgrind.git micro-opt: add an UNLIKELY git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15235 --- diff --git a/helgrind/libhb_core.c b/helgrind/libhb_core.c index 3fd59ef16d..791e95ecf7 100644 --- a/helgrind/libhb_core.c +++ b/helgrind/libhb_core.c @@ -1647,7 +1647,7 @@ static void shmem__invalidate_scache_range (Addr ga, SizeT szB) if (address_in_range(cache_shmem.tags0[ga_ix], ga, szB)) cache_shmem.tags0[ga_ix] = 1/*INVALID*/; ga_ix++; - if (ga_ix == N_WAY_NENT) + if (UNLIKELY(ga_ix == N_WAY_NENT)) ga_ix = 0; } }