projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ignore generated files.
[libfirm]
/
ir
/
opt
/
opt_inline.c
diff --git
a/ir/opt/opt_inline.c
b/ir/opt/opt_inline.c
index
c868be6
..
eb01365
100644
(file)
--- a/
ir/opt/opt_inline.c
+++ b/
ir/opt/opt_inline.c
@@
-2050,7
+2050,7
@@
static int calc_inline_benefice(call_entry *entry, ir_graph *callee)
callee_env = get_irg_link(callee);
if (callee_env->n_callers == 1 &&
callee != current_ir_graph &&
-
(get_entity_linkage(ent) & IR_LINKAGE_LOCAL
)) {
+
!entity_is_externally_visible(ent
)) {
weight += 700;
}