summaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-04 13:49:19 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-04 13:49:19 +0000
commitb3df2fb9117debde25013cf9263af5e550af40ba (patch)
tree6c9e74b6518a79df559a867dacf83d7c6d47ae70 /gcc/ipa.c
parent80a91f5b8e41b865b3f36c67ef7c090cf6f413fd (diff)
downloadgcc-b3df2fb9117debde25013cf9263af5e550af40ba.tar.gz
PR middle-end/53321
* ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375 to not call cgraph_propagate_frequency if something was changed. testsuite/ChangLog: PR middle-end/53321 * g++.dg/torture/pr53321.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index f5cce1ba41a..09351a79c2e 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -449,11 +449,6 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
verify_symtab ();
#endif
- /* If we removed something, perhaps profile could be improved. */
- if (changed && optimize && inline_edge_summary_vec)
- FOR_EACH_DEFINED_FUNCTION (node)
- cgraph_propagate_frequency (node);
-
return changed;
}