summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-11 21:28:32 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-11 21:28:32 +0000
commit54e3de714ab902032a9b63e19e899918632b282b (patch)
treec52430a69eeb61484fc062b9a5871e8770c318ac /gcc/ipa-inline.c
parent39908fd942fe2c7ca2ce59759b947d103e33108d (diff)
downloadgcc-54e3de714ab902032a9b63e19e899918632b282b.tar.gz
* 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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c2
1 files changed, 1 insertions, 1 deletions
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