aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2006-01-25 17:39:37 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2006-01-25 17:39:37 +0000
commita68e7e6c6648e57706db51b202f3e72406517b9f (patch)
tree0224d6afcc2c0d457d50b20bc90f70a16273ba21 /gcc/passes.c
parent6d3874a7e42efbe54406950fea9c3de746971099 (diff)
downloadgcc-a68e7e6c6648e57706db51b202f3e72406517b9f.zip
gcc-a68e7e6c6648e57706db51b202f3e72406517b9f.tar.gz
gcc-a68e7e6c6648e57706db51b202f3e72406517b9f.tar.bz2
Makefile.in (sched-vis.o): Update dependencies.
2006-01-25 Paolo Bonzini <bonzini@gnu.org> * Makefile.in (sched-vis.o): Update dependencies. * haifa-sched.c (sched_finish): Clear current_sched_info. * cfg.c (dump_bb_info): New, split from dump_flow_info. (dump_flow_info): Call it. * passes.c (execute_todo): Call print_rtl_slim_with_bb to make a slim RTL dump. * basic-block.h (dump_bb_info): Declare. * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all option, and apply options only for dump files whose TDF_RTL, TDF_TREE, or TDF_IPA bits match. * rtl.h: Declare new functions exported from sched-vis.c. * sched-vis.c: Enable also if scheduling is not used. (print_value): Print the mode of registers if not inside scheduling. (print_insn): Make it work outside the scheduler. Beautify the output a bit. (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New. From-SVN: r110217
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 8301590..5b84c39 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -748,16 +748,20 @@ execute_todo (struct tree_opt_pass *pass, unsigned int flags, bool use_required)
if (properties & PROP_trees)
dump_function_to_file (current_function_decl,
dump_file, dump_flags);
- else if (properties & PROP_cfg)
+ else
{
- print_rtl_with_bb (dump_file, get_insns ());
-
- if (graph_dump_format != no_graph
+ if (dump_flags & TDF_SLIM)
+ print_rtl_slim_with_bb (dump_file, get_insns (), dump_flags);
+ else if (properties & PROP_cfg)
+ print_rtl_with_bb (dump_file, get_insns ());
+ else
+ print_rtl (dump_file, get_insns ());
+
+ if (properties & PROP_cfg
+ && graph_dump_format != no_graph
&& (dump_flags & TDF_GRAPH))
print_rtl_graph_with_bb (dump_file_name, get_insns ());
}
- else
- print_rtl (dump_file, get_insns ());
/* Flush the file. If verification fails, we won't be able to
close the file before aborting. */