passes.c (execute_todo): Don't call do_per_function if flags are zero.

* passes.c (execute_todo): Don't call do_per_function if
	flags are zero.
	(execute_one_ipa_transform_pass, execute_one_pass): Don't call
	execute_function_dump if dump_file is NULL.

From-SVN: r204751
This commit is contained in:
Jakub Jelinek 2013-11-13 18:34:29 +01:00 committed by Jakub Jelinek
parent b62c62f4b0
commit a9335ba244
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2013-11-13 Jakub Jelinek <jakub@redhat.com>
* passes.c (execute_todo): Don't call do_per_function if
flags are zero.
(execute_one_ipa_transform_pass, execute_one_pass): Don't call
execute_function_dump if dump_file is NULL.
2013-11-13 Martin Jambor <mjambor@suse.cz>
* cgraph.c (cgraph_get_create_node): Do what

View File

@ -1875,6 +1875,7 @@ execute_todo (unsigned int flags)
statistics_fini_pass ();
if (flags)
do_per_function (execute_function_todo, (void *)(size_t) flags);
/* Always remove functions just as before inlining: IPA passes might be
@ -2065,6 +2066,7 @@ execute_one_ipa_transform_pass (struct cgraph_node *node,
if (profile_report && cfun && (cfun->curr_properties & PROP_cfg))
check_profile_consistency (pass->static_pass_number, 1, true);
if (dump_file)
do_per_function (execute_function_dump, NULL);
pass_fini_dump_file (pass);
@ -2231,6 +2233,7 @@ execute_one_pass (struct opt_pass *pass)
check_profile_consistency (pass->static_pass_number, 1, true);
verify_interpass_invariants ();
if (dump_file)
do_per_function (execute_function_dump, NULL);
if (pass->type == IPA_PASS)
{