From e4112065b05e7667ad69e35125c755a7ef4060dc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 21 Nov 2019 10:39:47 +0100 Subject: [PATCH] ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo, preffer -> prefer. * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo, preffer -> prefer. * ipa-inline.c (edge_badness): Likewise. * lto-streamer.h (class lto_location_cache): Likewise. * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos, gratutious -> gratuitous. From-SVN: r278546 --- gcc/ChangeLog | 9 +++++++++ gcc/ipa-fnsummary.h | 2 +- gcc/ipa-inline.c | 2 +- gcc/lto-streamer.h | 2 +- gcc/tree-ssa-sink.c | 6 +++--- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cfa7d61fb09..e705e4a2e99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-11-21 Jakub Jelinek + + * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo, + preffer -> prefer. + * ipa-inline.c (edge_badness): Likewise. + * lto-streamer.h (class lto_location_cache): Likewise. + * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos, + gratutious -> gratuitous. + 2019-11-21 Richard Biener Revert diff --git a/gcc/ipa-fnsummary.h b/gcc/ipa-fnsummary.h index a50978aacb8..ebd475b6d98 100644 --- a/gcc/ipa-fnsummary.h +++ b/gcc/ipa-fnsummary.h @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "ipa-predicate.h" -/* Hints are reasons why IPA heuristics should preffer specializing given +/* Hints are reasons why IPA heuristics should prefer specializing given function. They are represtented as bitmap of the following values. */ enum ipa_hints_vals { /* When specialization turns indirect call into a direct call, diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 6da3e96b45d..3cd1779f380 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1265,7 +1265,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) } if (overall_growth > 0) { - /* Strongly preffer functions with few callers that can be inlined + /* Strongly prefer functions with few callers that can be inlined fully. The square root here leads to smaller binaries at average. Watch however for extreme cases and return to linear function when growth is large. */ diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 067a6660d2f..7b712808bd5 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -296,7 +296,7 @@ typedef void (lto_free_section_data_f) (struct lto_file_decl_data *, size_t); /* The location cache holds expanded locations for streamed in trees. - This is done to reduce memory usage of libcpp linemap that strongly preffers + This is done to reduce memory usage of libcpp linemap that strongly prefers locations to be inserted in the soruce order. */ class lto_location_cache diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index 9e210effcba..eebff65cb46 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -176,7 +176,7 @@ nearest_common_dominator_of_uses (def_operand_p def_p, bool *debug_stmts) If the resulting block is in a shallower loop nest, then use it. Else only use the resulting block if it has significantly lower execution - frequency than EARLY_BB to avoid gratutious statement movement. We + frequency than EARLY_BB to avoid gratuitous statement movement. We consider statements with VOPS more desirable to move. This pass would obviously benefit from PDO as it utilizes block @@ -223,9 +223,9 @@ select_best_block (basic_block early_bb, } /* If BEST_BB is at the same nesting level, then require it to have - significantly lower execution frequency to avoid gratutious movement. */ + significantly lower execution frequency to avoid gratuitous movement. */ if (bb_loop_depth (best_bb) == bb_loop_depth (early_bb) - /* If result of comparsion is unknown, preffer EARLY_BB. + /* If result of comparsion is unknown, prefer EARLY_BB. Thus use !(...>=..) rather than (...<...) */ && !(best_bb->count.apply_scale (100, 1) > (early_bb->count.apply_scale (threshold, 1)))) -- 2.30.2