aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sink.c
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/tree-ssa-sink.c
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/tree-ssa-sink.c')
-rw-r--r--gcc/tree-ssa-sink.c6
1 files changed, 3 insertions, 3 deletions
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))))