Print generated code addr and len.  Print ms instead of usec.
@@ -5229,9 +5229,11 @@ void *MIR_gen (MIR_context_t ctx, int gen_num, MIR_item_t func_item) {
if (optimize_level != 0) destroy_loop_tree (gen_ctx, curr_cfg->root_loop_node);
destroy_func_cfg (gen_ctx);
DEBUG ({
- fprintf (debug_file, "Generation of code for %s: %lu MIR insns -- time %.0f usec\n",
+ fprintf (debug_file,
+ "Generation of code for %s: %lu MIR insns (addr=%lx, len=%lu) -- time %.2f ms\n",
MIR_item_name (ctx, func_item), DLIST_LENGTH (MIR_insn_t, func_item->u.func->insns),
- real_usec_time () - start_time);
+ (unsigned long) machine_code, (unsigned long) code_len,
+ (real_usec_time () - start_time) / 1000.0);
});
_MIR_restore_func_insns (ctx, func_item);
return func_item->addr;
