diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-04-13 08:27:57 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-04-13 06:27:57 +0000 |
commit | 31b2793874585acdcc7dafb85f3e6dc04eedef90 (patch) | |
tree | e5a9d5b5ae9bc5941279c3681ac56adf2e06fb84 /gcc/passes.c | |
parent | 5ff9ab9ba32620ad855e21ec3a0156b52bbb1aa8 (diff) | |
download | gcc-31b2793874585acdcc7dafb85f3e6dc04eedef90.zip gcc-31b2793874585acdcc7dafb85f3e6dc04eedef90.tar.gz gcc-31b2793874585acdcc7dafb85f3e6dc04eedef90.tar.bz2 |
ipa-cp.c (ipcp_driver): Relase prev_edge.
* ipa-cp.c (ipcp_driver): Relase prev_edge.
* passes.c (execute_one_pass): Only add transform if pass has one.
From-SVN: r222038
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 062ae4f0..beffd3f 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2350,8 +2350,9 @@ execute_one_pass (opt_pass *pass) if (pass->type == IPA_PASS) { struct cgraph_node *node; - FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) - node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass); + if (((ipa_opt_pass_d *)pass)->function_transform) + FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) + node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass); } if (!current_function_decl) |