@@ -100,7 +100,7 @@ along with GCC; see the file COPYING3. If not see
100100 significantly form one inline instance to another and from the
101101 offline version.
102102
103- This is controlled by -fauto-profile-inlinig and is independent
103+ This is controlled by -fauto-profile-inlining and is independent
104104 of -fearly-inlining.
105105
106106 Phase 4: In AFDO pass.
@@ -128,7 +128,7 @@ along with GCC; see the file COPYING3. If not see
128128 considered cols. */
129129gcov_type afdo_hot_bb_threshod = -1 ;
130130
131- /* Return ture if COUNT is possiby hot. */
131+ /* Return true if COUNT is possibly hot. */
132132bool
133133maybe_hot_afdo_count_p (profile_count count)
134134{
@@ -372,7 +372,7 @@ class function_instance
372372 removed_icall_target_ = true ;
373373 }
374374
375- /* Reutrn true if function is removed from indir target list. */
375+ /* Return true if function is removed from indir target list. */
376376 bool
377377 removed_icall_target ()
378378 {
@@ -506,7 +506,7 @@ class function_instance
506506 to it. */
507507 bool realized_;
508508
509- /* Ture if function is in worklist for merging/offlining. */
509+ /* True if function is in worklist for merging/offlining. */
510510 bool in_worklist_;
511511
512512 /* Pointer to outer function instance or NULL if this
@@ -1090,7 +1090,7 @@ function_instance::merge (function_instance *other,
10901090}
10911091
10921092/* Make inline function FN offline.
1093- If tolevel function of same name already exists, then merge profiles.
1093+ If toplevel function of same name already exists, then merge profiles.
10941094 Otherwise turn FN toplevel. Return true if new toplevel function
10951095 was introduced.
10961096 If new toplevel functions are created and NEW_FUNCTIONS != NULL,
@@ -1641,7 +1641,7 @@ function_instance::match (cgraph_node *node,
16411641 unsigned int start_location = get_combined_location
16421642 (DECL_STRUCT_FUNCTION (node->decl )->function_start_locus , node->decl );
16431643 /* When outputting code to builtins location we use line number 0.
1644- craeate_gcov is stupid and hapilly computes offsets across files.
1644+ create_gcov is stupid and happily computes offsets across files.
16451645 Silently ignore it. */
16461646 unsigned int zero_location
16471647 = ((unsigned )(1 -DECL_SOURCE_LINE (node->decl ))) << 16 ;
@@ -2093,11 +2093,11 @@ autofdo_source_profile::offline_external_functions ()
20932093 seen.add (iter.first );
20942094 }
20952095
2096- /* Now process all tolevel (offline) function instances.
2096+ /* Now process all toplevel (offline) function instances.
20972097
20982098 If instance has no definition in this translation unit,
20992099 first offline all inlined functions which are defined here
2100- (so we do not lose porfile due to cross-module inlining
2100+ (so we do not lose profile due to cross-module inlining
21012101 done by link-time optimizers).
21022102
21032103 If instance has a definition, look into all inlined functions
@@ -2697,7 +2697,7 @@ autofdo_source_profile::get_function_instance_by_inline_stack (
26972697 if (s == NULL )
26982698 {
26992699 /* afdo inliner extends the stack by last entry with unknown
2700- location while chekcing if function was inlined during train run.
2700+ location while checking if function was inlined during train run.
27012701 We do not want to print diagnostics about every function
27022702 which is not inlined. */
27032703 if (s && dump_enabled_p () && stack[i].location != UNKNOWN_LOCATION)
@@ -3441,7 +3441,7 @@ cmp (const void *a, const void *b)
34413441 return 0 ;
34423442}
34433443
3444- /* To scalle a connected component of graph we collect desired scales of
3444+ /* To scale a connected component of graph we collect desired scales of
34453445 basic blocks on the boundary and then compute a robust average. */
34463446
34473447struct scale
0 commit comments