This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Regclass preferencing fix.
- To: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Subject: Re: Regclass preferencing fix.
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 21 Nov 1999 00:32:23 -0800
- Cc: law at cygnus dot com, egcs-patches at egcs dot cygnus dot com
- References: <19991115152524.50730@atrey.karlin.mff.cuni.cz>
On Mon, Nov 15, 1999 at 03:25:24PM +0100, Jan Hubicka wrote:
> The cost calculation regclass for output operands is incorrect. When class
> is selected and cost for superset class is calculated, the may_move_cost
> is used in reversed order as for input operands. This is incorrect, since
> it will contain 0, because class is "subset" for it's point of view.
I must say it's certainly easier to work this through with
your dumping patch than without. :-)
> * regclass.c (may_move_in_cost): Rename from may_move_cost, all
> references updated.
> (may_move_out_cost): New variable.
> (init_reg_sets_1): Initialize may_move_out_cost.
> (record_reg_classes): Use may_move_out_cost.
Ok.
r~