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]

Re: rtx_cost vs magic constants


On Thu, 14 Sep 2000, Richard Henderson wrote:

> When COSTS_N_INSNS was added to rtl.h, its definition was changed
> from (x*2) to (x*4) for some reason.  In any case, it seems a good
> excuse to get rid of a bushel of hard-coded numbers.

FWIW, I changed it to 4 because that is closer to the original definition
(x * 4 - 2), and some targets have hard-coded constants that most likely
work better with a definition of (x * 4)...

Bernd


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