Commit 19322a87 by Jan Hubicka Committed by Jan Hubicka

ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig into instrumentation thunks.


	* ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
	into instrumentation thunks.
	* cif-code.def (CIF_CHKP): New.

From-SVN: r236299
parent 1743ce80
2016-05-16 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
into instrumentation thunks.
* cif-code.def (CIF_CHKP): New.
2016-05-16 Uros Bizjak <ubizjak@gmail.com>
* config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
......
......@@ -135,3 +135,7 @@ DEFCIFCODE(CILK_SPAWN, CIF_FINAL_ERROR,
/* We proved that the call is unreachable. */
DEFCIFCODE(UNREACHABLE, CIF_FINAL_ERROR,
N_("unreachable"))
/* We can't inline because of instrumentation thunk. */
DEFCIFCODE(CHKP, CIF_FINAL_ERROR,
N_("caller is instrumetnation thunk"))
......@@ -2943,7 +2943,13 @@ compute_inline_parameters (struct cgraph_node *node, bool early)
info->self_size = info->size;
info->self_time = info->time;
/* We can not inline instrumetnation clones. */
info->inlinable = !node->thunk.add_pointer_bounds_args;
if (node->thunk.add_pointer_bounds_args)
{
info->inlinable = false;
node->callees->inline_failed = CIF_CHKP;
}
else
info->inlinable = true;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment