This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: The recent regclass.c change
- To: Bernd Schmidt <crux at Pool dot Informatik dot RWTH-Aachen dot DE>
- Subject: Re: The recent regclass.c change
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 07 Oct 1998 10:50:21 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <Pine.SOL.3.90.981007151903.14501N-100000@matula.informatik.rwth-a
> I tried with the kernel, and the REG_WAS_0 optimization does trigger still.
> It appears that the move2add optimization requires RTX_COSTS to be tweaked.
> This ought to be investigated, but for now I'm afraid I might break the
> other cost calculations if I go mucking about with that macro, so this fix
> here seems like a safer solution for now.
Hmm. OK. Good info to have. Let's revisit this sometime in the future.
> Note: the patch is untested.
>
> Bernd
>
> * jump.c (duplicate_loop_exit_test): Strip REG_WAS_0 notes off all
> insns we're going to copy.
> * regclass.c (reg_scan_mark_refs): Don't test X for NULL_RTX.
Installed. It looks like the right approach. We'll deal with any problems :-)
Thanks!
jeff