Commit 7c99ab65 by Jan Hubicka Committed by Jan Hubicka

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
parent 588dbb19
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> 2012-09-05 Andrew Pinski <apinski@cavium.com>
* optabs.c (emit_conditional_add): Correct comment about the arguments. * optabs.c (emit_conditional_add): Correct comment about the arguments.
......
...@@ -532,7 +532,8 @@ want_inline_small_function_p (struct cgraph_edge *e, bool report) ...@@ -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 Upgrade it to MAX_INLINE_INSNS_SINGLE when hints suggests that
inlining given function is very profitable. */ inlining given function is very profitable. */
else if (!DECL_DECLARED_INLINE_P (callee->symbol.decl) 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 (MAX_INLINE_INSNS_AUTO,
MAX_INLINE_INSNS_SINGLE) MAX_INLINE_INSNS_SINGLE)
: MAX_INLINE_INSNS_AUTO)) : MAX_INLINE_INSNS_AUTO))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment