From 54e3de714ab902032a9b63e19e899918632b282b Mon Sep 17 00:00:00 2001 From: hubicka Date: Sun, 11 Feb 2007 21:28:32 +0000 Subject: [PATCH] * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the previous patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121825 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75cec2a..9b6445f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-11 Jan Hubicka + + * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the + previous patch. + 2007-02-11 Steven Bosscher * 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 -- 2.7.4