diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-30 09:46:02 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-30 09:46:02 +0000 |
commit | 3d9a4504e8d172ab8eb64859625aea9d0cc3d461 (patch) | |
tree | 4b15801bec76c3248ce31b82175d9ddd088a20d7 /gcc/sel-sched-dump.c | |
parent | 5a5c6968e652d7bbc90ef4ad5d7f5eb9ef3bace3 (diff) | |
download | gcc-3d9a4504e8d172ab8eb64859625aea9d0cc3d461.tar.gz |
* coretypes.h (struct pretty_print_info): Make a coretype.
(typedef pretty_printer): Likewise.
* pretty-print.h (typedef pretty_printer): Not needed here anymore.
* pretty-print.c (pp_write_text_as_dot_label_to_stream): New function.
* rtl.h (str_pattern_slim): New prototype.
(print_value, print_pattern, print_insn): Adjust prototypes to take
a pretty-printer rather than a char buffer.
* sched-vis.c (safe_concat): Remove.
(print_exp): Print into a pretty-printer.
(print_value): Likewise.
(print_pattern): Likewise.
(print_insn): Likewise.
(print_insn_with_notes): New static function.
(init_rtl_slim_pretty_print): New function.
(dump_value_slim): Simplify. Print into and flush a pretty-printer.
(dump_insn_slim): Likewise.
(dump_rtl_slim): Likewise.
(str_pattern_slim): New function.
* haifa-sched.c (model_recompute): Use str_pattern_slim instead of
static buffers.
(model_record_pressures): Likewise.
(schedule_insn): Likewise.
* sel-sched-dump.c (dump_insn_rtx_1): Likewise.
(sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code.
* graph.c: Include pretty-print.h.
(init_graph_slim_pretty_print): New function.
(print_escaped_line): Removed here, and reincarnated as
pp_write_text_as_dot_label_to_stream.
(draw_cfg_node): Print into a pretty printer.
(draw_cfg_node_succ_edges): Likewise.
(print_rtl_graph_with_bb): Likewise.
* Makefile.in (graph.o): Fix dependencies.
(tree-optimize.o, toplev.o, sched-vis.o): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193990 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-dump.c')
-rw-r--r-- | gcc/sel-sched-dump.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/sel-sched-dump.c b/gcc/sel-sched-dump.c index 9d9accb96b7..9e72cfd8c8b 100644 --- a/gcc/sel-sched-dump.c +++ b/gcc/sel-sched-dump.c @@ -136,12 +136,7 @@ dump_insn_rtx_1 (rtx insn, int flags) sel_print ("%d;", INSN_UID (insn)); if (flags & DUMP_INSN_RTX_PATTERN) - { - char buf[2048]; - - print_insn (buf, insn, 0); - sel_print ("%s;", buf); - } + sel_print ("%s;", str_pattern_slim (insn)); if (flags & DUMP_INSN_RTX_BBN) { @@ -522,6 +517,7 @@ sel_print_insn (const_rtx insn, int aligned ATTRIBUTE_UNUSED) /* Functions for pretty printing of CFG. */ +/* FIXME: Using pretty-print here could simplify this stuff. */ /* Replace all occurencies of STR1 to STR2 in BUF. The BUF must be large enough to hold the result. */ @@ -564,7 +560,8 @@ replace_str_in_buf (char *buf, const char *str1, const char *str2) while (p); } -/* Replace characters in BUF that have special meaning in .dot file. */ +/* Replace characters in BUF that have special meaning in .dot file. + Similar to pp_write_text_as_dot_label_to_stream. */ static void sel_prepare_string_for_dot_label (char *buf) { |