From 68e2e14118630fdacae722f6a571766a72fc938a Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 11 Feb 2007 22:28:32 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75cec2a33be..9b6445fafd8 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 50b02fbf6f5..a3d93313cc4 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.30.2