aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-profile.cc')
-rw-r--r--gcc/tree-profile.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree-profile.cc b/gcc/tree-profile.cc
index fed218e..fe20e84 100644
--- a/gcc/tree-profile.cc
+++ b/gcc/tree-profile.cc
@@ -2031,6 +2031,7 @@ tree_profiling (void)
handle_missing_profiles ();
del_node_map ();
+ end_branch_prob ();
return 0;
}
@@ -2065,10 +2066,8 @@ public:
bool
pass_ipa_tree_profile::gate (function *)
{
- /* When profile instrumentation, use or test coverage shall be performed.
- But for AutoFDO, this there is no instrumentation, thus this pass is
- disabled. */
- return (!in_lto_p && !flag_auto_profile
+ /* When profile instrumentation, use or test coverage shall be performed. */
+ return (!in_lto_p
&& (flag_branch_probabilities || flag_test_coverage
|| coverage_instrumentation_p ())
&& !seen_error ());