From 6457af891ab835edfbc5d82bfd62c619776dd887 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 3 Nov 1999 02:52:18 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/regclass.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 715c41835cd..dd700bb2d35 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 2 21:53:44 1999 Richard Kenner + + * 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 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes. diff --git a/gcc/regclass.c b/gcc/regclass.c index 46e61d2d334..dfbc85c629e 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1249,7 +1249,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size, pp->cost[class] = (recog_data.operand_type[i] == OP_IN ? 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 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, pp->cost[class] = (recog_data.operand_type[i] == OP_IN ? 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 a bit cheaper since we won't need an extra insn to