* ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2012 22:32:36 +0000 (22:32 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2012 22:32:36 +0000 (22:32 +0000)
hint.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190999 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c

index 84c4f09..270af17 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 a1d703a..95842bd 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))