On 07/21/2011 01:39 AM, Georg-Johann Lay wrote:
> - fprintf (asm_out_file, "/* DEBUG: cost = %d. */\n",
> -rtx_cost (PATTERN (insn), INSN, !optimize_size));
> + rtx set;
> +
> + if ((set = single_set (insn), set))
> +fprintf (asm_out_file, "/* DEBUG: cost = %d.
This patch fixes the debug output of rtx_costs as enabled with -mdeb.
rtx_costs are typically computed for SET_SRC of patters, not of pattern/insn
as a whole resp for SETs.
This patch yields more accurate dumps of rtx_costs in asm file.
Ok?
Johann
* config/avr/avr.c (final_prescan_insn