@@ -1117,12 +1117,16 @@ move_computations_worker (basic_block bb)
continue;
}
- if (dump_file && (dump_flags & TDF_DETAILS))
+ if (dump_enabled_p ())
{
- fprintf (dump_file, "Moving PHI node\n");
- print_gimple_stmt (dump_file, stmt, 0);
- fprintf (dump_file, "(cost %u) out of loop %d.\n\n",
- cost, level->num);
+ /* FIXME: consolidation etc. */
+ dump_printf_loc (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS, stmt,
+ "Moving PHI node\n");
+ dump_gimple_stmt (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS, TDF_SLIM,
+ stmt, 0);
+ dump_printf (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS,
+ " (cost %u) out of loop %d.\n\n",
+ cost, level->num);
}
if (gimple_phi_num_args (stmt) == 1)
@@ -1186,12 +1190,14 @@ move_computations_worker (basic_block bb)
if (gimple_code (stmt) == GIMPLE_COND)
continue;
- if (dump_file && (dump_flags & TDF_DETAILS))
+ if (dump_enabled_p ())
{
- fprintf (dump_file, "Moving statement\n");
- print_gimple_stmt (dump_file, stmt, 0);
- fprintf (dump_file, "(cost %u) out of loop %d.\n\n",
- cost, level->num);
+ dump_printf_loc (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS, stmt,
+ "Moving statement\n");
+ dump_gimple_stmt (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS, TDF_SLIM, stmt, 0);
+ dump_printf (MSG_OPTIMIZED_LOCATIONS | TDF_DETAILS,
+ "(cost %u) out of loop %d.\n\n",
+ cost, level->num);
}
e = loop_preheader_edge (level);