This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Merge cfo-branch, RTL sequence abstraction (part 1)


On Sat, 2006-01-07 at 15:48, Roger Sayle wrote:

> One reason that using a constant, does so well relatively on the ARM
> is that the ARM backend currently doesn't honor optimize_size, so all
> of the values returned are cycle counts rather than size estimates.
> Given that ARM is a RISC architecture, using a constant is probably a
> better approximation than its rtx_costs.  This is easily fixed, and
> would allow not only your new pass, but combine, ivopts, expand and
> numerous other optimizers to produce better code density.

Eh? So what do you think this code in arm_override_options is doing?

  if (optimize_size)
    targetm.rtx_costs = arm_size_rtx_costs;
  else
    targetm.rtx_costs = all_cores[(int)arm_tune].rtx_costs;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]