* ipa-inline.c (cgraph_early_inlining): Handle flattening too.
From-SVN: r158477
This commit is contained in:
parent
6c559604a8
commit
6a8cd10005
@ -1,3 +1,7 @@
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user