diff options
Diffstat (limited to 'gcc/profile-count.h')
-rw-r--r-- | gcc/profile-count.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/profile-count.h b/gcc/profile-count.h index c83fa3b..f4d0c340 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -59,6 +59,8 @@ enum profile_quality { profile_precise }; +extern const char *profile_quality_as_string (enum profile_quality); + /* The base value for branch probability notes and edge probabilities. */ #define REG_BR_PROB_BASE 10000 @@ -721,6 +723,9 @@ public: return m_quality == profile_precise; } + /* Get the quality of the count. */ + enum profile_quality quality () const { return m_quality; } + /* When merging basic blocks, the two different profile counts are unified. Return true if this can be done without losing info about profile. The only case we care about here is when first BB contains something |