ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations hint.

* ipa-inline.c (want_inline_small_function_p): Use INLINE_HINT_loop_iterations
	hint.

From-SVN: r190999
This commit is contained in:
Jan Hubicka 2012-09-06 00:32:36 +02:00 committed by Jan Hubicka
parent 588dbb1914
commit 7c99ab652a
2 changed files with 7 additions and 1 deletions

View 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.

View 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))