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]

Re: Regclass preferencing fix.


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~


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