[llvm-commits] [128030] Do not use the uninlinable flag for functions the inliner decides not to inline .

lattner at apple.com lattner at apple.com
Tue Jun 5 23:40:10 PDT 2007


Revision: 128030
Author:   lattner
Date:     2007-06-05 23:40:10 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
Do not use the uninlinable flag for functions the inliner decides not to inline.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/tree-inline.c

Modified: apple-local/branches/llvm/gcc/tree-inline.c
===================================================================
--- apple-local/branches/llvm/gcc/tree-inline.c	2007-06-06 05:58:43 UTC (rev 128029)
+++ apple-local/branches/llvm/gcc/tree-inline.c	2007-06-06 06:40:10 UTC (rev 128030)
@@ -1220,9 +1220,16 @@
       inlinable = false;
     }
 
+  /* APPLE LOCAL begin LLVM */
+  #ifndef ENABLE_LLVM
+  /* LLVM uses the uninlinable flag to know when the noinline attribute
+    was used. This code will cause all functions that this inliner decides
+    not to inline to appear to have been marked noinline. */
   /* Squirrel away the result so that we don't have to check again.  */
   DECL_UNINLINABLE (fn) = !inlinable;
-
+  #endif
+  /* APPLE LOCAL end LLVM */
+  
   return inlinable;
 }
 





More information about the llvm-commits mailing list