Commit 7ba03e5e by Jeff Law Committed by Jeff Law

* ipa-inline.c (inline_small_functions): Fix typos.

From-SVN: r207608
parent acf601ae
2014-02-07 Jeff Law <law@redhat.com>
* ipa-inline.c (inline_small_functions): Fix typos.
2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com> 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
* config/s390/s390-protos.h (s390_can_use_simple_return_insn) * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
......
...@@ -1749,9 +1749,9 @@ inline_small_functions (void) ...@@ -1749,9 +1749,9 @@ inline_small_functions (void)
continue; continue;
} }
/* Heuristics for inlining small functions works poorly for /* Heuristics for inlining small functions work poorly for
recursive calls where we do efect similar to loop unrolling. recursive calls where we do effects similar to loop unrolling.
When inliing such edge seems profitable, leave decision on When inlining such edge seems profitable, leave decision on
specific inliner. */ specific inliner. */
if (cgraph_edge_recursive_p (edge)) if (cgraph_edge_recursive_p (edge))
{ {
...@@ -1779,10 +1779,11 @@ inline_small_functions (void) ...@@ -1779,10 +1779,11 @@ inline_small_functions (void)
struct cgraph_node *outer_node = NULL; struct cgraph_node *outer_node = NULL;
int depth = 0; int depth = 0;
/* Consider the case where self recursive function A is inlined into B. /* Consider the case where self recursive function A is inlined
This is desired optimization in some cases, since it leads to effect into B. This is desired optimization in some cases, since it
similar of loop peeling and we might completely optimize out the leads to effect similar of loop peeling and we might completely
recursive call. However we must be extra selective. */ optimize out the recursive call. However we must be extra
selective. */
where = edge->caller; where = edge->caller;
while (where->global.inlined_to) while (where->global.inlined_to)
......
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