From: Bart Van Assche Date: Sat, 15 Mar 2008 14:30:20 +0000 (+0000) Subject: More performance tuning. X-Git-Tag: svn/VALGRIND_3_4_0~873 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aef47a47d4959a4449c149146eb46f21cd151f9;p=thirdparty%2Fvalgrind.git More performance tuning. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7689 --- diff --git a/exp-drd/drd_bitmap.c b/exp-drd/drd_bitmap.c index 3ff24d759d..26963ee194 100644 --- a/exp-drd/drd_bitmap.c +++ b/exp-drd/drd_bitmap.c @@ -141,8 +141,6 @@ void bm_access_aligned_load(struct bitmap* const bm, struct bitmap2* bm2; bm2 = bm2_lookup_or_insert(bm, a1 >> ADDR0_BITS); - tl_assert(bm2); - bm0_set_range(bm2->bm1.bm0_r, a1 & ADDR0_MASK, size); } @@ -153,8 +151,6 @@ void bm_access_aligned_store(struct bitmap* const bm, struct bitmap2* bm2; bm2 = bm2_lookup_or_insert(bm, a1 >> ADDR0_BITS); - tl_assert(bm2); - bm0_set_range(bm2->bm1.bm0_w, a1 & ADDR0_MASK, size); } diff --git a/exp-drd/drd_bitmap.h b/exp-drd/drd_bitmap.h index cd2244bb94..ecc71d59a5 100644 --- a/exp-drd/drd_bitmap.h +++ b/exp-drd/drd_bitmap.h @@ -40,7 +40,7 @@ /* Macro definitions. */ -#define ADDR0_BITS 12 +#define ADDR0_BITS 16 #define ADDR0_COUNT ((UWord)1 << ADDR0_BITS) @@ -159,7 +159,6 @@ struct bitmap2* bm_lookup(const struct bitmap* const bm, const Addr a) const UWord a1 = a >> ADDR0_BITS; if (a1 == bm->last_lookup_a1) { - //tl_assert(bm->last_lookup_result == VG_(OSetGen_Lookup)(bm->oset, &a1)); return bm->last_lookup_result; } result = VG_(OSetGen_Lookup)(bm->oset,&a1); @@ -196,7 +195,6 @@ struct bitmap2* bm2_lookup_or_insert(const struct bitmap* const bm, if (a1 == bm->last_lookup_a1) { - //tl_assert(bm->last_lookup_result == VG_(OSetGen_Lookup)(bm->oset, &a1)); return bm->last_lookup_result; }