|
From: <sv...@va...> - 2005-10-12 10:29:47
|
Author: sewardj
Date: 2005-10-12 11:29:40 +0100 (Wed, 12 Oct 2005)
New Revision: 4904
Log:
rm trigram stuff.
Modified:
trunk/cachegrind/cg_main.c
Modified: trunk/cachegrind/cg_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/cachegrind/cg_main.c 2005-10-12 10:09:23 UTC (rev 4903)
+++ trunk/cachegrind/cg_main.c 2005-10-12 10:29:40 UTC (rev 4904)
@@ -438,7 +438,7 @@
IRAtom;
=20
typedef=20
- enum { Event_Ir=3D0, Event_Dr=3D1, Event_Dw=3D2, Event_Dm=3D3 }
+ enum { Event_Ir, Event_Dr, Event_Dw, Event_Dm }
EventKind;
=20
typedef
@@ -480,32 +480,6 @@
CgState;
=20
=20
-static Int index3 ( EventKind k1, EventKind k2, EventKind k3 )
-{
- Int i1 =3D k1;
- Int i2 =3D k2;
- Int i3 =3D k3;
- Int r;
- tl_assert(i1 >=3D 0 && i1 < 4);
- tl_assert(i2 >=3D 0 && i2 < 4);
- tl_assert(i3 >=3D 0 && i3 < 4);
- r =3D 16*i1 + 4*i2 + i3;
- tl_assert(r >=3D 0 && r < 64);
- return r;
-}
-
-static void show3 ( Int idx )
-{
- HChar* names =3D "IRWM";
- Int i1 =3D (idx >> 4) & 3;
- Int i2 =3D (idx >> 2) & 3;
- Int i3 =3D idx & 3;
- VG_(printf)("%c%c%c", names[i1], names[i2], names[i3]);
-}
-
-static Int trigrams[64];
-
-
/*------------------------------------------------------------*/
/*--- Instrumentation main ---*/
/*------------------------------------------------------------*/
@@ -633,9 +607,6 @@
instr_info* i_node2;
instr_info* i_node3;
=20
- for (i =3D 0; i < cgs->events_used-2; i++)
- trigrams [ index3( cgs->events[i].ekind, cgs->events[i+1].ekind,cgs=
->events[i+2].ekind ) ]++;
-
i =3D 0;
while (i < cgs->events_used) {
=20
@@ -1351,12 +1322,6 @@
VG_(message)(Vg_DebugMsg, "BBs Retranslated: %d", BB_retranslatio=
ns);
}
VGP_POPCC(VgpCacheResults);
-
- if (0) { Int i;
- for (i =3D 0; i < 64; i++) {
- show3(i); VG_(printf)(" %5d\n", trigrams[i] );
- }
- }
}
=20
/*--------------------------------------------------------------------*/
|