diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 1999-11-03 02:52:18 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1999-11-02 21:52:18 -0500 |
commit | 6457af891ab835edfbc5d82bfd62c619776dd887 (patch) | |
tree | a8c5e3c57bacb1041734b538d91e1119295cddee /gcc/regclass.c | |
parent | 5e4f2173162ffa0263160af367135f97a115b9b2 (diff) | |
download | gcc-6457af891ab835edfbc5d82bfd62c619776dd887.zip gcc-6457af891ab835edfbc5d82bfd62c619776dd887.tar.gz gcc-6457af891ab835edfbc5d82bfd62c619776dd887.tar.bz2 |
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
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 46e61d2..dfbc85c 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 |