diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index b6786f7c516..9a15c87dac9 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -2338,7 +2338,7 @@ tree_estimate_probability (void) tree_bb_level_predictions (); record_loop_exits (); - if (number_of_loops () > 1) + if (number_of_loops (cfun) > 1) predict_loops (); FOR_EACH_BB (bb) @@ -2372,7 +2372,7 @@ tree_estimate_probability_driver (void) mark_irreducible_loops (); - nb_loops = number_of_loops (); + nb_loops = number_of_loops (cfun); if (nb_loops > 1) scev_initialize (); @@ -2694,7 +2694,7 @@ estimate_loops (void) basic_block bb; /* Start by estimating the frequencies in the loops. */ - if (number_of_loops () > 1) + if (number_of_loops (cfun) > 1) estimate_loops_at_level (current_loops->tree_root->inner); /* Now propagate the frequencies through all the blocks. */ |