* ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2007 21:28:32 +0000 (21:28 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2007 21:28:32 +0000 (21:28 +0000)
previous patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121825 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c

index 75cec2a..9b6445f 100644 (file)
@@ -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
index 50b02fb..a3d9331 100644 (file)
@@ -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