summaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-01-06 12:25:41 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-01-06 12:25:41 -0800
commit9b15c17f0d2f223e09cebf99f47d0972d7568f9c (patch)
tree95bb033a85e24116b3efc6a96f5f1fa804c19191 /gcc/regclass.c
parent55ff3de705a71f1419d97123dac01f0c0950ca70 (diff)
downloadgcc-9b15c17f0d2f223e09cebf99f47d0972d7568f9c.tar.gz
flow.c (mark_set_1): Use loop_depth+1 as reference weight.
* flow.c (mark_set_1): Use loop_depth+1 as reference weight. (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise. (count_reg_sets_1, count_reg_references): Likewise. (flow_loops_level_compute): Start counting actual loop depth at 1. (flow_loops_find): Likewise. * local-alloc.c (update_equiv_regs): Likewise. * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change. From-SVN: r31259
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 1a45b244dc3..06c2badfd23 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -1100,13 +1100,13 @@ regclass (f, nregs, dump)
basic_block bb = BASIC_BLOCK (index);
/* Show that an insn inside a loop is likely to be executed three
- times more than insns outside a loop. This is much more aggressive
- than the assumptions made elsewhere and is being tried as an
- experiment. */
+ times more than insns outside a loop. This is much more
+ aggressive than the assumptions made elsewhere and is being
+ tried as an experiment. */
if (optimize_size)
loop_cost = 1;
else
- loop_cost = 1 << (2 * MIN (bb->loop_depth - 1, 5));
+ loop_cost = 1 << (2 * MIN (bb->loop_depth, 5));
for (insn = bb->head; ; insn = NEXT_INSN (insn))
{
insn = scan_one_insn (insn, pass);