Commit 6a8cd100 by Jan Hubicka Committed by Jan Hubicka

* ipa-inline.c (cgraph_early_inlining): Handle flattening too.

From-SVN: r158477
parent 6c559604
2010-04-17 Jan Hubicka <jh@suse.cz>
* ipa-inline.c (cgraph_early_inlining): Handle flattening too.
2010-04-17 Richard Earnshaw <rearnsha@arm.com>
* arm.md (negdi2): Remove redundant code to force values into a
......
......@@ -1667,6 +1667,17 @@ cgraph_early_inlining (void)
}
else
{
if (lookup_attribute ("flatten",
DECL_ATTRIBUTES (node->decl)) != NULL)
{
if (dump_file)
fprintf (dump_file,
"Flattening %s\n", cgraph_node_name (node));
cgraph_flatten (node);
timevar_push (TV_INTEGRATION);
todo |= optimize_inline_calls (current_function_decl);
timevar_pop (TV_INTEGRATION);
}
/* We iterate incremental inlining to get trivial cases of indirect
inlining. */
while (iterations < PARAM_VALUE (PARAM_EARLY_INLINER_MAX_ITERATIONS)
......
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