From 5058c037581a2015d2e2ea86c50628dcde72f646 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 26 Mar 2015 20:54:44 +0100 Subject: ipa-inline-analysis.c (redirect_to_unreachable): New function. * ipa-inline-analysis.c (redirect_to_unreachable): New function. (edge_set_predicate): Use it to mark unreachable edges. (inline_summary_t::duplicate): Remove unnecesary code. (remap_edge_summaries): Likewise. (dump_inline_summary): Report contains_cilk_spawn. (compute_inline_parameters): Compute contains_cilk_spawn. (inline_read_section, inline_write_summary): Stream contains_cilk_spawn. * ipa-inline.c (can_inline_edge_p): Do not tuch DECL_STRUCT_FUNCTION that may not be available; use CIF_CILK_SPAWN for cilk; fix optimization attribute checks; remove check for callee_fun->can_throw_non_call_exceptions and replace it by optimization attribute check; check for flag_exceptions. * ipa-inline-transform.c (inline_call): Maintain DECL_FUNCTION_PERSONALITY * ipa-inline.h (inline_summary): Add contains_cilk_spawn. From-SVN: r221706 --- gcc/ipa-inline.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/ipa-inline.h') diff --git a/gcc/ipa-inline.h b/gcc/ipa-inline.h index dfc0053..ed4d66f 100644 --- a/gcc/ipa-inline.h +++ b/gcc/ipa-inline.h @@ -126,6 +126,9 @@ struct GTY(()) inline_summary /* False when there something makes inlining impossible (such as va_arg). */ unsigned inlinable : 1; + /* True when function contains cilk spawn (and thus we can not inline + into it). */ + unsigned contains_cilk_spawn : 1; /* Information about function that will result after applying all the inline decisions present in the callgraph. Generally kept up to -- cgit v1.1