Re: [Patch,AVR]: Fix printing of rtx_costs

2011-07-21 Thread Richard Henderson
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.

[Patch,AVR]: Fix printing of rtx_costs

2011-07-21 Thread Georg-Johann Lay
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