aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-16 12:10:28 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-16 10:10:28 +0000
commit0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb (patch)
tree2fad4cf8e62a6fa8390658fc1bb6621e961d826e /gcc/cgraphclones.c
parentc1d854fb24ba20ecdd1736117a5e5cd39686e479 (diff)
downloadgcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.zip
gcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.tar.gz
gcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.tar.bz2
ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic on estimating thunk bodies...
* ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic on estimating thunk bodies; do not set inline_failed to CIF_THUNK for calls from thunk. * ipa-inline-transform.c (inline_call): When inlining into thunk produce gimple body. (preserve_function_body_p): No need to preserve function body * cif-codes.def (CIF_THUNK): Remove. * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable. * g++.dg/ipa/ivinline-7.C: Do not xfail. * g++.dg/ipa/ivinline-9.C: Do not xfail. From-SVN: r236274
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 43ee735..97eb927 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -337,8 +337,6 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node)
cgraph_edge *e = new_thunk->create_edge (node, NULL, 0,
CGRAPH_FREQ_BASE);
- e->call_stmt_cannot_inline_p = true;
- e->inline_failed = CIF_THUNK;
symtab->call_edge_duplication_hooks (thunk->callees, e);
symtab->call_cgraph_duplication_hooks (thunk, new_thunk);
return new_thunk;