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] Fix PR optimization/10157


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~


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