aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2011-02-11 15:16:46 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2011-02-11 15:16:46 +0000
commit61502ca83754695ad954c8872379ae566f8e21e9 (patch)
treefb74d6c5685edc7c6aad61bcc6ec5436740ac374 /gcc/ipa-cp.c
parentd50c5e0c692b85447c059144c5ccff0f67c07854 (diff)
downloadgcc-61502ca83754695ad954c8872379ae566f8e21e9.zip
gcc-61502ca83754695ad954c8872379ae566f8e21e9.tar.gz
gcc-61502ca83754695ad954c8872379ae566f8e21e9.tar.bz2
cgraph.c: Fix comment typos.
* cgraph.c: Fix comment typos. * cgraph.h: Likewise. * cgraphunit.c: Likewise. * ipa-cp.c: Likewise. * ipa-inline.c: Likewise. * ipa-prop.c: Likewise. * ipa-pure-const.c: Likewise. * ipa-ref.c: Likewise. * ipa-reference.c: Likewise. From-SVN: r170052
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index b06238d..0ef640b 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -50,7 +50,7 @@ along with GCC; see the file COPYING3. If not see
with the value 3.
The algorithm used is based on "Interprocedural Constant Propagation", by
- Challahan David, Keith D Cooper, Ken Kennedy, Linda Torczon, Comp86, pg
+ David Callahan, Keith D Cooper, Ken Kennedy, Linda Torczon, Comp86, pg
152-161
The optimization is divided into three stages:
@@ -469,7 +469,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
if (cgraph_function_body_availability (node) <= AVAIL_OVERWRITABLE)
{
if (dump_file)
- fprintf (dump_file, "Not considering %s for cloning; body is overwrittable.\n",
+ fprintf (dump_file, "Not considering %s for cloning; body is overwritable.\n",
cgraph_node_name (node));
return false;
}
@@ -521,7 +521,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
/* When profile is available and function is hot, propagate into it even if
calls seems cold; constant propagation can improve function's speed
- significandly. */
+ significantly. */
if (max_count)
{
if (direct_call_sum > node->count * 90 / 100)
@@ -614,8 +614,8 @@ build_const_val (struct ipcp_lattice *lat, tree tree_type)
FIXME: This code is wrong. Since the callers can be also clones and
the clones are not scaled yet, the sums gets unrealistically high.
To properly compute the counts, we would need to do propagation across
- callgraph (as external call to A might imply call to non-clonned B
- if A's clone calls clonned B). */
+ callgraph (as external call to A might imply call to non-cloned B
+ if A's clone calls cloned B). */
static void
ipcp_compute_node_scale (struct cgraph_node *node)
{
@@ -1127,7 +1127,7 @@ ipcp_estimate_growth (struct cgraph_node *node)
else
need_original = true;
- /* If we will be able to fully replace orignal node, we never increase
+ /* If we will be able to fully replace original node, we never increase
program size. */
if (!need_original)
return 0;
@@ -1148,7 +1148,7 @@ ipcp_estimate_growth (struct cgraph_node *node)
}
/* We make just very simple estimate of savings for removal of operand from
- call site. Precise cost is dificult to get, as our size metric counts
+ call site. Precise cost is difficult to get, as our size metric counts
constants and moves as free. Generally we are looking for cases that
small function is called very many times. */
growth = node->local.inline_summary.self_size
@@ -1380,7 +1380,7 @@ ipcp_insert_stage (void)
new_size += growth;
- /* Look if original function becomes dead after clonning. */
+ /* Look if original function becomes dead after cloning. */
for (cs = node->callers; cs != NULL; cs = cs->next_caller)
if (cs->caller == node || ipcp_need_redirect_p (cs))
break;
@@ -1555,7 +1555,7 @@ static bool
cgraph_gate_cp (void)
{
/* FIXME: We should remove the optimize check after we ensure we never run
- IPA passes when not optimizng. */
+ IPA passes when not optimizing. */
return flag_ipa_cp && optimize;
}