]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Small additional optimization.
authorBart Van Assche <bvanassche@acm.org>
Thu, 13 Mar 2008 20:11:33 +0000 (20:11 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 13 Mar 2008 20:11:33 +0000 (20:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7676

exp-drd/drd_bitmap.c
exp-drd/drd_main.c

index d09ae47d3a7efb5fdb85519b6b8c37bea57b7fea..94818307f7b6e7f42ac1e96fb949b360fd2595b5 100644 (file)
@@ -218,14 +218,6 @@ UWord bm_has_any_access(const struct bitmap* const bm,
             b_end = (bm2->addr << ADDR0_BITS) + ADDR0_COUNT;
          else
             b_end = a2;
-#if 0
-         VG_(message)(Vg_DebugMsg,
-                      "in 0x%lx 0x%lx / cur 0x%lx 0x%lx / out 0x%lx 0x%lx",
-                      a1, a2,
-                      (bm2->addr << ADDR0_BITS),
-                      (bm2->addr << ADDR0_BITS) + ADDR0_COUNT,
-                      b_start, b_end);
-#endif
          tl_assert(a1 <= b_end && b_end <= a2);
          tl_assert(b_start < b_end);
          tl_assert((b_start & ADDR0_MASK) <= ((b_end - 1) & ADDR0_MASK));
index 823cf21b4f670509fe85a18ee89b1955f12a9880..0a137efc90a64cf5c691fca3d3ceab4529957caa 100644 (file)
@@ -181,7 +181,7 @@ VG_REGPARM(2) void drd_trace_load(Addr addr, SizeT size)
 #endif
    sg = thread_get_segment(thread_get_running_tid());
    bm_access_range_load(sg->bm, addr, addr + size);
-   if (bm_has_conflict_with(thread_get_danger_set(), addr, addr + size, eLoad)
+   if (bm_load_has_conflict_with(thread_get_danger_set(), addr, addr + size)
        && ! drd_is_suppressed(addr, addr + size))
    {
       DataRaceErrInfo drei;
@@ -231,7 +231,7 @@ VG_REGPARM(2) void drd_trace_store(Addr addr, SizeT size)
 #endif
    sg = thread_get_segment(thread_get_running_tid());
    bm_access_range_store(sg->bm, addr, addr + size);
-   if (bm_has_conflict_with(thread_get_danger_set(), addr, addr + size, eStore)
+   if (bm_store_has_conflict_with(thread_get_danger_set(), addr, addr + size)
        && ! drd_is_suppressed(addr, addr + size))
    {
       DataRaceErrInfo drei;