]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
More performance tuning.
authorBart Van Assche <bvanassche@acm.org>
Sat, 15 Mar 2008 14:30:20 +0000 (14:30 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 15 Mar 2008 14:30:20 +0000 (14:30 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7689

exp-drd/drd_bitmap.c
exp-drd/drd_bitmap.h

index 3ff24d759df1f9457901d791939ed1f4e34180f4..26963ee194d69ebb21b51b1dccdc81e5004902bd 100644 (file)
@@ -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);
 }
 
index cd2244bb94aa56af9261b217823bce2b6618027b..ecc71d59a587f9aae1465f67fa17f4fc52abf938 100644 (file)
@@ -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;
   }