passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info when not neecesary
[gcc.git] / gcc / predict.c
index 2e78d3937a0e2be511838a2cb4570b113a9fe6e4..792acb8ab147f38d85f08c4f3b3450d48b604c07 100644 (file)
@@ -1383,7 +1383,7 @@ tree_estimate_probability (void)
   FOR_EACH_BB (bb)
     combine_predictions_for_bb (dump_file, bb);
 
-  if (0)  /* FIXME: Enable once we are pass down the profile to RTL level.  */
+  if (!flag_loop_optimize)
     strip_builtin_expect ();
   estimate_bb_frequencies (&loops_info);
   free_dominance_info (CDI_POST_DOMINATORS);