avr.c (final_prescan_insn): Fix printing of rtx_costs.

* config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.

From-SVN: r176575
This commit is contained in:
Georg-Johann Lay 2011-07-21 15:46:28 +00:00 committed by Georg-Johann Lay
parent f985cc7ed4
commit e951472536
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2011-07-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
2011-07-21 Jason Merrill <jason@redhat.com>
* system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.

View File

@ -1629,12 +1629,18 @@ byte_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
void
final_prescan_insn (rtx insn, rtx *operand ATTRIBUTE_UNUSED,
int num_operands ATTRIBUTE_UNUSED)
int num_operands ATTRIBUTE_UNUSED)
{
if (TARGET_ALL_DEBUG)
{
fprintf (asm_out_file, "/* DEBUG: cost = %d. */\n",
rtx_cost (PATTERN (insn), INSN, !optimize_size));
rtx set = single_set (insn);
if (set)
fprintf (asm_out_file, "/* DEBUG: cost = %d. */\n",
rtx_cost (SET_SRC (set), SET, optimize_insn_for_speed_p()));
else
fprintf (asm_out_file, "/* DEBUG: pattern-cost = %d. */\n",
rtx_cost (PATTERN (insn), INSN, optimize_insn_for_speed_p()));
}
}