diff options
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index ffef13d..91286b4 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -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; } |