This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve x86 size costs
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Jan 2006 15:49:13 -0800
- Subject: Re: [PATCH] Improve x86 size costs
- References: <Pine.LNX.4.44.0601171137330.1873-100000@www.eyesopen.com>
On Tue, Jan 17, 2006 at 12:37:13PM -0700, Roger Sayle wrote:
> * 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.
Ok.
r~