tree-sra.c (ipa_sra_preliminary_function_checks): Skip DECL_DISREGARD_INLINE_LIMITS functions.

2014-04-14  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (ipa_sra_preliminary_function_checks): Skip
	DECL_DISREGARD_INLINE_LIMITS functions.

From-SVN: r209386
This commit is contained in:
Martin Jambor 2014-04-14 19:17:27 +02:00 committed by Martin Jambor
parent 2ed3b4ee02
commit 7b3b340eaf
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-04-14 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (ipa_sra_preliminary_function_checks): Skip
DECL_DISREGARD_INLINE_LIMITS functions.
2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
PR target/60827

View File

@ -4960,6 +4960,14 @@ ipa_sra_preliminary_function_checks (struct cgraph_node *node)
if (TYPE_ATTRIBUTES (TREE_TYPE (node->decl)))
return false;
if (DECL_DISREGARD_INLINE_LIMITS (node->decl))
{
if (dump_file)
fprintf (dump_file, "Always inline function will be inlined "
"anyway. \n");
return false;
}
return true;
}