This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR optimization/10157
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Apr 2003 18:31:34 -0800
- Subject: Re: [PATCH] Fix PR optimization/10157
- References: <200304021146.46413.ebotcazou@libertysurf.fr>
On Wed, Apr 02, 2003 at 12:00:54PM +0200, Eric Botcazou wrote:
> * gcse.c (can_copy_p): Change it to bool. Export.
> (can_copy_init_p): Likewise.
> (compute_can_copy): Export.
> (gcse_main): Set can_copy_init_p to true instead of 1.
> (bypass_jumps): Likewise.
I'd prefer that can_copy_p be changed to a function, and that it
call compute_can_copy itself. That seems a bit more robust than
scattering calls to compute_can_copy wherever it gets used.
Alternately, move the call to compute_can_copy somewhere like
init_regs.
r~