diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-16 12:32:14 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-16 12:32:14 +0000 |
commit | b3f6f6371579def7ebf78376c7e96dd4f7ddc406 (patch) | |
tree | 9aa3e39b6548bbca47da7549cc7d16d245461d5c /gcc | |
parent | e125abaa272fbc480036536d7483152db6481f47 (diff) | |
download | gcc-b3f6f6371579def7ebf78376c7e96dd4f7ddc406.tar.gz |
* tree-data-ref.h (dot_rdg): Remove prototype.
* tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-data-ref.c | 64 | ||||
-rw-r--r-- | gcc/tree-data-ref.h | 1 |
3 files changed, 5 insertions, 65 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cfc2a438ae1..f3958e689a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-12-16 Ben Elliston <bje@au.ibm.com> + + * tree-data-ref.h (dot_rdg): Remove prototype. + * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove. + 2009-12-16 Kazu Hirata <kazu@codesourcery.com> * doc/invoke.texi, doc/options.texi, doc/plugins.texi, diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 1b0421c5ef0..dbdd3237d5e 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -4630,70 +4630,6 @@ debug_rdg (struct graph *rdg) dump_rdg (stderr, rdg); } -static void -dot_rdg_1 (FILE *file, struct graph *rdg) -{ - int i; - - fprintf (file, "digraph RDG {\n"); - - for (i = 0; i < rdg->n_vertices; i++) - { - struct vertex *v = &(rdg->vertices[i]); - struct graph_edge *e; - - /* Highlight reads from memory. */ - if (RDG_MEM_READS_STMT (rdg, i)) - fprintf (file, "%d [style=filled, fillcolor=green]\n", i); - - /* Highlight stores to memory. */ - if (RDG_MEM_WRITE_STMT (rdg, i)) - fprintf (file, "%d [style=filled, fillcolor=red]\n", i); - - if (v->succ) - for (e = v->succ; e; e = e->succ_next) - switch (RDGE_TYPE (e)) - { - case input_dd: - fprintf (file, "%d -> %d [label=input] \n", i, e->dest); - break; - - case output_dd: - fprintf (file, "%d -> %d [label=output] \n", i, e->dest); - break; - - case flow_dd: - /* These are the most common dependences: don't print these. */ - fprintf (file, "%d -> %d \n", i, e->dest); - break; - - case anti_dd: - fprintf (file, "%d -> %d [label=anti] \n", i, e->dest); - break; - - default: - gcc_unreachable (); - } - } - - fprintf (file, "}\n\n"); -} - -/* Display SCOP using dotty. */ - -void -dot_rdg (struct graph *rdg) -{ - FILE *file = fopen ("/tmp/rdg.dot", "w"); - gcc_assert (file != NULL); - - dot_rdg_1 (file, rdg); - fclose (file); - - system ("dotty /tmp/rdg.dot"); -} - - /* This structure is used for recording the mapping statement index in the RDG. */ diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h index e945ecb464d..678eb10cc18 100644 --- a/gcc/tree-data-ref.h +++ b/gcc/tree-data-ref.h @@ -504,7 +504,6 @@ void dump_rdg_component (FILE *, struct graph *, int, bitmap); void debug_rdg_component (struct graph *, int); void dump_rdg (FILE *, struct graph *); void debug_rdg (struct graph *); -void dot_rdg (struct graph *); int rdg_vertex_for_stmt (struct graph *, gimple); /* Data dependence type. */ |