From 442e3cb9a0815e003691e42e3aac7447cbcdc335 Mon Sep 17 00:00:00 2001 From: kazu Date: Thu, 26 May 2005 18:15:27 +0000 Subject: * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h, cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c, ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c, tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c, tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c, tree.c, config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c, config/frv/frv.md, config/i386/i386.c, config/i386/sse.md, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h, config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md, config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md, config/sh/ushmedia.h, config/sparc/sparc.c, config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment typos. Follow spelling conventions. * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos. Follow spelling conventions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100218 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ipa-inline.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 8addcfb31cb..fbda466e558 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -320,13 +320,13 @@ cgraph_maybe_hot_edge_p (struct cgraph_edge *edge) /* A cost model driving the inlining heuristics in a way so the edges with smallest badness are inlined first. After each inlining is performed - the costs of all caller edges of nodes affected are recompted so the + the costs of all caller edges of nodes affected are recomputed so the metrics may accurately depend on values such as number of inlinable callers of the function or function body size. For the moment we use estimated growth caused by inlining callee into all it's callers for driving the inlining but once we have loop depth or - frequency information readilly available we should do better. + frequency information readily available we should do better. With profiling we use number of executions of each edge to drive the cost. We also should distinguish hot and cold calls where the cold calls are @@ -344,7 +344,7 @@ cgraph_edge_badness (struct cgraph_edge *edge) cgraph_estimate_size_after_inlining (1, edge->caller, edge->callee); growth -= edge->caller->global.insns; - /* Always preffer inlining saving code size. */ + /* Always prefer inlining saving code size. */ if (growth <= 0) return INT_MIN - growth; return ((int)((double)edge->count * INT_MIN / max_count)) / growth; @@ -416,7 +416,7 @@ update_callee_keys (fibheap_t heap, struct cgraph_node *node, } /* Enqueue all recursive calls from NODE into priority queue depending on - how likely we want to recursivly inline the call. */ + how likely we want to recursively inline the call. */ static void lookup_recursive_calls (struct cgraph_node *node, struct cgraph_node *where, @@ -608,7 +608,7 @@ cgraph_decide_inlining_of_small_functions (void) continue; /* When not having profile info ready we don't weight by any way the - possition of call in procedure itself. This means if call of + position of call in procedure itself. This means if call of function A from function B seems profitable to inline, the recursive call of function A in inline copy of A in B will look profitable too and we end up inlining until reaching maximal function growth. This -- cgit v1.2.1