Commit 6457af89 by Richard Kenner Committed by Richard Kenner

regclass.c (record_reg_classes): Always use may_move_cost when seeing how…

regclass.c (record_reg_classes): Always use may_move_cost when seeing how operand fits with various register classes.

	* regclass.c (record_reg_classes): Always use may_move_cost when
	seeing how operand fits with various register classes.

From-SVN: r30362
parent 5e4f2173
Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* regclass.c (record_reg_classes): Always use may_move_cost when
seeing how operand fits with various register classes.
Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com> Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
* resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes. * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
......
...@@ -1249,7 +1249,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size, ...@@ -1249,7 +1249,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
pp->cost[class] pp->cost[class]
= (recog_data.operand_type[i] == OP_IN = (recog_data.operand_type[i] == OP_IN
? may_move_cost[class][(int) classes[i]] ? may_move_cost[class][(int) classes[i]]
: move_cost[(int) classes[i]][class]); : may_move_cost[(int) classes[i]][class]);
/* If the alternative actually allows memory, make things /* If the alternative actually allows memory, make things
a bit cheaper since we won't need an extra insn to a bit cheaper since we won't need an extra insn to
...@@ -1470,7 +1470,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size, ...@@ -1470,7 +1470,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
pp->cost[class] pp->cost[class]
= (recog_data.operand_type[i] == OP_IN = (recog_data.operand_type[i] == OP_IN
? may_move_cost[class][(int) classes[i]] ? may_move_cost[class][(int) classes[i]]
: move_cost[(int) classes[i]][class]); : may_move_cost[(int) classes[i]][class]);
/* If the alternative actually allows memory, make things /* If the alternative actually allows memory, make things
a bit cheaper since we won't need an extra insn to a bit cheaper since we won't need an extra insn to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment