summaryrefslogtreecommitdiff
path: root/cachegrind/cg_main.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-10-12 10:29:40 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-10-12 10:29:40 +0000
commit20edebfd7da1f94a1490e150283ddb0b35a05796 (patch)
tree1b1c52a4a75504a1ff39ab0dc4c3362ab38c9a00 /cachegrind/cg_main.c
parent5155dec2ac1d0855fcdc5060503e1d98a281b26a (diff)
rm trigram stuff.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4904 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'cachegrind/cg_main.c')
-rw-r--r--cachegrind/cg_main.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index f36d3743..c4628ff2 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -438,7 +438,7 @@ typedef
IRAtom;
typedef
- enum { Event_Ir=0, Event_Dr=1, Event_Dw=2, Event_Dm=3 }
+ enum { Event_Ir, Event_Dr, Event_Dw, Event_Dm }
EventKind;
typedef
@@ -480,32 +480,6 @@ typedef
CgState;
-static Int index3 ( EventKind k1, EventKind k2, EventKind k3 )
-{
- Int i1 = k1;
- Int i2 = k2;
- Int i3 = k3;
- Int r;
- tl_assert(i1 >= 0 && i1 < 4);
- tl_assert(i2 >= 0 && i2 < 4);
- tl_assert(i3 >= 0 && i3 < 4);
- r = 16*i1 + 4*i2 + i3;
- tl_assert(r >= 0 && r < 64);
- return r;
-}
-
-static void show3 ( Int idx )
-{
- HChar* names = "IRWM";
- Int i1 = (idx >> 4) & 3;
- Int i2 = (idx >> 2) & 3;
- Int i3 = idx & 3;
- VG_(printf)("%c%c%c", names[i1], names[i2], names[i3]);
-}
-
-static Int trigrams[64];
-
-
/*------------------------------------------------------------*/
/*--- Instrumentation main ---*/
/*------------------------------------------------------------*/
@@ -633,9 +607,6 @@ static void flushEvents ( CgState* cgs )
instr_info* i_node2;
instr_info* i_node3;
- for (i = 0; i < cgs->events_used-2; i++)
- trigrams [ index3( cgs->events[i].ekind, cgs->events[i+1].ekind,cgs->events[i+2].ekind ) ]++;
-
i = 0;
while (i < cgs->events_used) {
@@ -1351,12 +1322,6 @@ static void cg_fini(Int exitcode)
VG_(message)(Vg_DebugMsg, "BBs Retranslated: %d", BB_retranslations);
}
VGP_POPCC(VgpCacheResults);
-
- if (0) { Int i;
- for (i = 0; i < 64; i++) {
- show3(i); VG_(printf)(" %5d\n", trigrams[i] );
- }
- }
}
/*--------------------------------------------------------------------*/