diff options
author | Jan Hubicka <jh@suse.cz> | 2007-02-11 22:28:32 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-02-11 21:28:32 +0000 |
commit | 68e2e14118630fdacae722f6a571766a72fc938a (patch) | |
tree | c52430a69eeb61484fc062b9a5871e8770c318ac /gcc | |
parent | dcdc7b6c9d3b3d0170cfeed1d4ebe5d84b73b346 (diff) | |
download | gcc-68e2e14118630fdacae722f6a571766a72fc938a.zip gcc-68e2e14118630fdacae722f6a571766a72fc938a.tar.gz gcc-68e2e14118630fdacae722f6a571766a72fc938a.tar.bz2 |
ipa-inline.c (cgraph_edge_badness): Add "else" missing in the previous patch.
* ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
previous patch.
From-SVN: r121825
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75cec2a3..9b6445f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-11 Jan Hubicka <jh@suse.cz> + + * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the + previous patch. + 2007-02-11 Steven Bosscher <steven@gcc.gnu.org> * fwprop.c (try_fwprop_subst): Use set_unique_reg_note diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 50b02fb..a3d9331 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -496,7 +496,7 @@ cgraph_edge_badness (struct cgraph_edge *edge) /* When profiling is available, base priorities -(#calls / growth). So we optimize for overall number of "executed" inlined calls. */ - if (max_count) + else if (max_count) badness = ((int)((double)edge->count * INT_MIN / max_count)) / growth; /* When function local profile is available, base priorities on |