[PATCH] Fix PR optimization/10157
Richard Henderson
rth@redhat.com
Thu Apr 3 02:31:00 GMT 2003
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~
More information about the Gcc-patches
mailing list