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] Correct cost computation in expand_mult (PR middle-end/22067)


On Sat, 17 Sep 2005, David Edelsohn wrote:
>
> 	PR middle-end/22067
> 	* expmed.c (expand_mult): Substitute simple register for op0 when
> 	computing max_cost.

This is OK for mainline (modulo any current check-in restrictions).
Thanks.  This (missed optimization) bug may have been exposed by the
recent changes to RTL expansion to avoid forcing operands into regs
for CSE's benefit.

p.s. It might make sense to have a global garbage-collected "generic
pseudo register" rtx, that may be reused through-out the middle-end,
instead of allocating a new one each time its needed.

Roger
--


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