diff options
Diffstat (limited to 'gcc/cfgloopanal.c')
-rw-r--r-- | gcc/cfgloopanal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c index 0cee6c68b28..2260f4b4baa 100644 --- a/gcc/cfgloopanal.c +++ b/gcc/cfgloopanal.c @@ -470,7 +470,7 @@ single_likely_exit (struct loop *loop) ruled out by this test. The static branch prediction algorithm will not assign such a low probability to conditionals for usual reasons. */ - if (profile_status != PROFILE_ABSENT + if (profile_status_for_fn (cfun) != PROFILE_ABSENT && ex->probability < 5 && !ex->count) continue; if (!found) |