tree-sra.c (ipa_sra_preliminary_function_checks): Skip DECL_DISREGARD_INLINE_LIMITS...
authorMartin Jambor <mjambor@suse.cz>
Mon, 14 Apr 2014 17:17:27 +0000 (19:17 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 14 Apr 2014 17:17:27 +0000 (19:17 +0200)
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

gcc/ChangeLog
gcc/tree-sra.c

index 4757728..e641c6e 100644 (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
index ffef13d..91286b4 100644 (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;
 }