+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
#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,
}
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. */
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
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
}
/* 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))))