diff mbox series

[committed] Two further comment spelling fixes

Message ID 20191121094052.GE4650@tucnak
State New
Headers show
Series [committed] Two further comment spelling fixes | expand

Commit Message

Jakub Jelinek Nov. 21, 2019, 9:40 a.m. UTC
Hi!

While reading code (in this case tree-ssa-sink.c) I've noticed two further
spelling errors, fixed thusly, committed as obvious to trunk.

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.


	Jakub
diff mbox series

Patch

--- gcc/ipa-fnsummary.h.jj	2019-11-14 09:03:37.025072675 +0100
+++ gcc/ipa-fnsummary.h	2019-11-20 14:25:35.278350455 +0100
@@ -25,7 +25,7 @@  along with GCC; see the file COPYING3.
 #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,
--- gcc/ipa-inline.c.jj	2019-11-19 22:27:01.961059325 +0100
+++ gcc/ipa-inline.c	2019-11-20 14:25:50.077128824 +0100
@@ -1241,7 +1241,7 @@  edge_badness (struct cgraph_edge *edge,
 	}
       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.  */
--- gcc/lto-streamer.h.jj	2019-11-07 21:21:27.744751249 +0100
+++ gcc/lto-streamer.h	2019-11-20 14:26:04.627910906 +0100
@@ -296,7 +296,7 @@  typedef void (lto_free_section_data_f) (
 					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
--- gcc/tree-ssa-sink.c.jj	2019-11-13 10:54:47.168019472 +0100
+++ gcc/tree-ssa-sink.c	2019-11-20 14:25:19.081593017 +0100
@@ -176,7 +176,7 @@  nearest_common_dominator_of_uses (def_op
 
    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))))