projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0a97ca
)
inlining array types is the same as inlining compound types
author
Matthias Braun
<matze@braunis.de>
Tue, 11 Dec 2012 10:12:25 +0000
(11:12 +0100)
committer
Matthias Braun
<matze@braunis.de>
Tue, 11 Dec 2012 10:12:25 +0000
(11:12 +0100)
ir/opt/opt_inline.c
patch
|
blob
|
history
diff --git
a/ir/opt/opt_inline.c
b/ir/opt/opt_inline.c
index
b2550ed
..
f3dd946
100644
(file)
--- a/
ir/opt/opt_inline.c
+++ b/
ir/opt/opt_inline.c
@@
-260,7
+260,7
@@
static bool can_inline(ir_node *call, ir_graph *called_graph)
for (i = 0; i < n_params; ++i) {
ir_type *p_type = get_method_param_type(call_type, i);
- if (is_compound_type(p_type))
+ if (is_compound_type(p_type)
|| is_Array_type(p_type)
)
return false;
}
@@
-268,7
+268,7
@@
static bool can_inline(ir_node *call, ir_graph *called_graph)
for (i = 0; i < n_res; ++i) {
ir_type *r_type = get_method_res_type(call_type, i);
- if (is_compound_type(r_type))
+ if (is_compound_type(r_type)
|| is_Array_type(r_type)
)
return false;
}