diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-07 20:31:37 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-07 20:31:37 +0000 |
commit | 0656d247cc21e0631c5553597469449b3661fba1 (patch) | |
tree | 8a6c02190f64c6038307b9786aa310fc51131c1f /gcc/ipa-inline-transform.c | |
parent | b70e2043a85a126ee27ea23a3edab307c0a1d234 (diff) | |
download | gcc-0656d247cc21e0631c5553597469449b3661fba1.tar.gz |
* ipa-inline-transform.c (inline_call): Account when program size decreases.
* ipa-inline.c (relative_time_benefit): New function.
(edge_badness): Reorganize to be power 2 based; fix
thinko when computing badness for negative growth; update
comments to match reality; better dumps.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173537 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline-transform.c')
-rw-r--r-- | gcc/ipa-inline-transform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 117958ccf03..cf24a62caf7 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -184,7 +184,7 @@ inline_call (struct cgraph_edge *e, bool update_original, old_size = inline_summary (to)->size; inline_merge_summary (e); new_size = inline_summary (to)->size; - if (overall_size && new_size > old_size) + if (overall_size) *overall_size += new_size - old_size; ncalls_inlined++; |