diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-23 12:44:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-23 12:44:51 +0100 |
commit | 956d615d66d06a9810000a5b7941be3ee1da7f8e (patch) | |
tree | c83ab08bf31cd219c19b4ce43217b5a462726223 /gcc/profile-count.h | |
parent | 8d0d7a63019a7d67943d1867348673e3ca3dc824 (diff) | |
download | gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.zip gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.tar.gz gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.tar.bz2 |
ipa-fnsummary.c: Fix comment typos.
* ipa-fnsummary.c: Fix comment typos.
* ipa-ref.h: Likewise.
* ipa-predicate.h: Likewise.
* ipa-split.c: Likewise.
* ipa-inline-analysis.c: Likewise.
* ipa-predicate.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-icf.h: Likewise.
* profile-count.c: Likewise.
* ipa-icf.c: Likewise.
(sem_function::equals_wpa): Fix typos in dump messages.
* ipa-icf-gimple.h: Fix comment typos.
* ipa-inline-transform.c: Likewise.
* ipa-polymorphic-call.c: Likewise.
* ipa-fnsummary.h: Likewise.
* ipa-inline.c: Likewise.
(dump_inline_stats): Fix typo in debug dump message.
* profile-count.h: Fix comment typos.
From-SVN: r278643
Diffstat (limited to 'gcc/profile-count.h')
-rw-r--r-- | gcc/profile-count.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/profile-count.h b/gcc/profile-count.h index ef84ddc..3d6e388 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -37,7 +37,7 @@ enum profile_quality { GUESSED_LOCAL, /* Profile was read by feedback and was 0, we used local heuristics to guess - better. This is the case of functions not run in profile fedback. + better. This is the case of functions not run in profile feedback. Never used by probabilities. */ GUESSED_GLOBAL0, @@ -48,7 +48,7 @@ enum profile_quality { not reflect the reality but it can be compared interprocedurally (for example, we inlined function w/o profile feedback into function with feedback and propagated from that). - Never used by probablities. */ + Never used by probabilities. */ GUESSED, /* Profile was determined by autofdo. */ @@ -111,7 +111,7 @@ safe_scale_64bit (uint64_t a, uint64_t b, uint64_t c, uint64_t *res) In addition to actual value the quality of profile is tracked and propagated through all operations. Special value UNINITIALIZED_PROFILE is used for probabilities - that has not been determined yet (for example bacause of + that has not been determined yet (for example because of -fno-guess-branch-probability) Typically probabilities are derived from profile feedback (via @@ -122,7 +122,7 @@ safe_scale_64bit (uint64_t a, uint64_t b, uint64_t c, uint64_t *res) - never (0 probability) - guessed_never - very_unlikely (1/2000 probability) - - unlikely (1/5 probablity) + - unlikely (1/5 probability) - even (1/2 probability) - likely (4/5 probability) - very_likely (1999/2000 probability) @@ -479,7 +479,7 @@ public: /* The following is equivalent to: *this = cprob.invert () * *this / ret.invert (); Avoid scaling when overall outcome is supposed to be always. - Without knowing that one is inverse of toher, the result would be + Without knowing that one is inverse of other, the result would be conservative. */ if (!(*this == always ())) *this = (*this - ret) / ret.invert (); @@ -532,7 +532,7 @@ public: /* Return true when the probability of edge is reliable. - The profile guessing code is good at predicting branch outcome (ie. + The profile guessing code is good at predicting branch outcome (i.e. taken/not taken), that is predicted right slightly over 75% of time. It is however notoriously poor on predicting the probability itself. In general the profile appear a lot flatter (with probabilities closer @@ -567,7 +567,7 @@ public: return m_val <= max_probability; } - /* Comparsions are three-state and conservative. False is returned if + /* Comparisons are three-state and conservative. False is returned if the inequality cannot be decided. */ bool operator< (const profile_probability &other) const { @@ -608,7 +608,7 @@ public: bool differs_lot_from_p (profile_probability other) const; /* COUNT1 times event happens with *THIS probability, COUNT2 times OTHER - happens with COUNT2 probablity. Return probablity that either *THIS or + happens with COUNT2 probability. Return probability that either *THIS or OTHER happens. */ profile_probability combine_with_count (profile_count count1, profile_probability other, @@ -631,7 +631,7 @@ public: estimation. 2) ipa counters which are result of profile feedback or special case of static profile estimation (such as in function main). - 3) counters which counts as 0 inter-procedurally (beause given function + 3) counters which counts as 0 inter-procedurally (because given function was never run in train feedback) but they hold local static profile estimate. @@ -641,7 +641,7 @@ public: well defined. To take local counter and use it inter-procedurally use ipa member function - which strips information irelevant at the inter-procedural level. + which strips information irrelevant at the inter-procedural level. Counters are 61bit integers representing number of executions during the train run or normalized frequency within the function. @@ -660,7 +660,7 @@ public: and they do end up in uninitialized scale if any of the parameters is uninitialized. - All comparsions that are three state and handling of probabilities. Thus + All comparisons that are three state and handling of probabilities. Thus a < b is not equal to !(a >= b). The following pre-defined counts are available: @@ -770,7 +770,7 @@ public: return m_quality >= ADJUSTED; } - /* Return true if vlaue can be operated inter-procedurally. */ + /* Return true if value can be operated inter-procedurally. */ bool ipa_p () const { return !initialized_p () || m_quality >= GUESSED_GLOBAL0; @@ -890,7 +890,7 @@ public: return m_val != uninitialized_count || m_quality == GUESSED_LOCAL; } - /* Comparsions are three-state and conservative. False is returned if + /* Comparisons are three-state and conservative. False is returned if the inequality cannot be decided. */ bool operator< (const profile_count &other) const { @@ -976,7 +976,7 @@ public: return initialized_p () && m_val != 0; } - /* Make counter forcingly nonzero. */ + /* Make counter forcibly nonzero. */ profile_count force_nonzero () const { if (!initialized_p ()) @@ -1119,8 +1119,8 @@ public: return ret; } - /* Return variant of profile counte which is always safe to compare - acorss functions. */ + /* Return variant of profile count which is always safe to compare + across functions. */ profile_count ipa () const { if (m_quality > GUESSED_GLOBAL0_ADJUSTED) |