Commit e9514725 by Georg-Johann Lay Committed by Georg-Johann Lay

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
parent f985cc7e
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.
......
......@@ -1633,8 +1633,14 @@ final_prescan_insn (rtx insn, rtx *operand ATTRIBUTE_UNUSED,
{
if (TARGET_ALL_DEBUG)
{
rtx set = single_set (insn);
if (set)
fprintf (asm_out_file, "/* DEBUG: cost = %d. */\n",
rtx_cost (PATTERN (insn), INSN, !optimize_size));
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()));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment