i386.c (COSTS_N_BYTES): New macro.
authorRoger Sayle <roger@eyesopen.com>
Wed, 18 Jan 2006 02:48:17 +0000 (02:48 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 18 Jan 2006 02:48:17 +0000 (02:48 +0000)
commit3dd0df7f136e41d9b05a1804ba1d01166a3a0a0e
tree1c0dbff3441372f8842a70d08c047e023d3cd63b
parentc637eb15a2b0df85f831b3a38dd20e189533684d
i386.c (COSTS_N_BYTES): New macro.

* config/i386/i386.c (COSTS_N_BYTES): New macro.
(size_cost): Encode costs in bytes so that a reg-reg addition is
equivalent to COSTS_N_INSNS(1).
(override_options): Use the size_cost.branch_cost as the default
ix86_branch_cost when optimizing for size.

From-SVN: r109867
gcc/ChangeLog
gcc/config/i386/i386.c