summaryrefslogtreecommitdiff
path: root/memcheck/mc_main.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-05-03 05:24:57 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-05-03 05:24:57 +0000
commitb6a4ece90d27a68d4a02c314ba9564ffc1fbf15b (patch)
treee858c08e63114bc01bcde8a339322abc4c2e57c2 /memcheck/mc_main.c
parent5fa87802b2b0934807a776d62ef5900177938cad (diff)
Remove a bit of unused code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7995 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r--memcheck/mc_main.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index e462fce5..2d54fb92 100644
--- a/memcheck/mc_main.c
+++ b/memcheck/mc_main.c
@@ -3828,11 +3828,10 @@ void mc_STOREV32 ( Addr a, UWord vbits32, Bool isBigEndian )
sm_off = SM_OFF(a);
vabits8 = sm->vabits8[sm_off];
-//---------------------------------------------------------------------------
-#if 1
// Cleverness: sometimes we don't have to write the shadow memory at
// all, if we can tell that what we want to write is the same as what is
- // already there.
+ // already there. The 64/16/8 bit cases also have cleverness at this
+ // point, but it works a little differently to the code below.
if (V_BITS32_DEFINED == vbits32) {
if (vabits8 == (UInt)VA_BITS8_DEFINED) {
return;
@@ -3858,31 +3857,6 @@ void mc_STOREV32 ( Addr a, UWord vbits32, Bool isBigEndian )
PROF_EVENT(234, "mc_STOREV32-slow4");
mc_STOREVn_slow( a, 32, (ULong)vbits32, isBigEndian );
}
-//---------------------------------------------------------------------------
-#else
- if (LIKELY( !is_distinguished_sm(sm) &&
- (VA_BITS8_DEFINED == vabits8 ||
- VA_BITS8_UNDEFINED == vabits8) ))
- {
- /* Handle common case quickly: a is suitably aligned, */
- /* is mapped, and is addressible. */
- // Convert full V-bits in register to compact 2-bit form.
- if (V_BITS32_DEFINED == vbits32) {
- sm->vabits8[sm_off] = VA_BITS8_DEFINED;
- } else if (V_BITS32_UNDEFINED == vbits32) {
- sm->vabits8[sm_off] = VA_BITS8_UNDEFINED;
- } else {
- /* Slow but general case -- writing partially defined bytes. */
- PROF_EVENT(232, "mc_STOREV32-slow2");
- mc_STOREVn_slow( a, 32, (ULong)vbits32, isBigEndian );
- }
- } else {
- /* Slow but general case. */
- PROF_EVENT(233, "mc_STOREV32-slow3");
- mc_STOREVn_slow( a, 32, (ULong)vbits32, isBigEndian );
- }
-#endif
-//---------------------------------------------------------------------------
#endif
}