ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations hint.
authorJan Hubicka <jh@suse.cz>
Wed, 5 Sep 2012 22:32:36 +0000 (00:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 5 Sep 2012 22:32:36 +0000 (22:32 +0000)
* ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations
hint.

From-SVN: r190999

gcc/ChangeLog
gcc/ipa-inline.c

index 84c4f0903431ba63eceae468214da8bbfec4a7a2..270af179cd0b122645e48cdb8c1665a11b37cccb 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-05  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations
+       hint.
+
 2012-09-05  Andrew Pinski  <apinski@cavium.com>
 
        * optabs.c (emit_conditional_add): Correct comment about the arguments.
index a1d703a6b7f90c5e157e7144a65dcfdde219f060..95842bdaa6a29ad2cfd723516f31a83182d0363e 100644 (file)
@@ -532,7 +532,8 @@ want_inline_small_function_p (struct cgraph_edge *e, bool report)
         Upgrade it to MAX_INLINE_INSNS_SINGLE when hints suggests that
         inlining given function is very profitable.  */
       else if (!DECL_DECLARED_INLINE_P (callee->symbol.decl)
-              && growth >= ((hints & INLINE_HINT_indirect_call)
+              && growth >= ((hints & (INLINE_HINT_indirect_call
+                                      | INLINE_HINT_loop_iterations))
                             ? MAX (MAX_INLINE_INSNS_AUTO,
                                    MAX_INLINE_INSNS_SINGLE)
                             : MAX_INLINE_INSNS_AUTO))