]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic on estimating...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 16 May 2016 10:10:28 +0000 (12:10 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 16 May 2016 10:10:28 +0000 (10:10 +0000)
commit0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb
tree2fad4cf8e62a6fa8390658fc1bb6621e961d826e
parentc1d854fb24ba20ecdd1736117a5e5cd39686e479
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
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraphclones.c
gcc/cif-code.def
gcc/ipa-inline-analysis.c
gcc/ipa-inline-transform.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/ivinline-7.C
gcc/testsuite/g++.dg/ipa/ivinline-9.C