ipa-inline.c (cgraph_edge_badness): Add "else" missing in the previous patch.
authorJan Hubicka <jh@suse.cz>
Sun, 11 Feb 2007 21:28:32 +0000 (22:28 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 11 Feb 2007 21:28:32 +0000 (21:28 +0000)
* ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
previous patch.

From-SVN: r121825

gcc/ChangeLog
gcc/ipa-inline.c

index 75cec2a33be01ce6058c5ac748b2632bc79771c3..9b6445fafd8ccca6af734525aecbd621ab9448c5 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 50b02fbf6f59e609526a2c0b5f5547d2de7c04bf..a3d93313cc4bc153f8dfae657853cef1a4332e9a 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