aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-11-21 10:39:47 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-11-21 10:39:47 +0100
commite4112065b05e7667ad69e35125c755a7ef4060dc (patch)
tree2f204484db7f45eece1387d639910717fee34f31 /gcc
parenta877996fa38034348c569f2fe1651e88a99df737 (diff)
downloadgcc-e4112065b05e7667ad69e35125c755a7ef4060dc.zip
gcc-e4112065b05e7667ad69e35125c755a7ef4060dc.tar.gz
gcc-e4112065b05e7667ad69e35125c755a7ef4060dc.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/ipa-fnsummary.h2
-rw-r--r--gcc/ipa-inline.c2
-rw-r--r--gcc/lto-streamer.h2
-rw-r--r--gcc/tree-ssa-sink.c6
5 files changed, 15 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cfa7d61..e705e4a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2019-11-21 Jakub Jelinek <jakub@redhat.com>
+
+ * 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 <rguenther@suse.de>
Revert
diff --git a/gcc/ipa-fnsummary.h b/gcc/ipa-fnsummary.h
index a50978a..ebd475b 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 6da3e96..3cd1779 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 067a666..7b71280 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 9e210ef..eebff65 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))))