This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Correct cost computation in expand_mult (PR middle-end/22067)
- From: Roger Sayle <roger at eyesopen dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 17 Sep 2005 11:52:47 -0600 (MDT)
- Subject: 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
--