diff options
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index c25626c..ceb6169 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -719,8 +719,10 @@ public: bool pass_ipa_tree_profile::gate (function *) { - /* When profile instrumentation, use or test coverage shall be performed. */ - return (!in_lto_p + /* When profile instrumentation, use or test coverage shall be performed. + But for AutoFDO, this there is no instrumentation, thus this pass is + diabled. */ + return (!in_lto_p && !flag_auto_profile && (flag_branch_probabilities || flag_test_coverage || profile_arc_flag)); } |