diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-04 18:46:46 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-04 18:46:46 +0000 |
commit | 8039100fa04e14d4efef1d0bef35191d2f71fb4a (patch) | |
tree | 81dd15ff782f14d4888a5108a41e02c705aef3b9 /gcc/regclass.c | |
parent | adf6ebcacf605364c54e4bf2295c48894b101755 (diff) | |
download | gcc-8039100fa04e14d4efef1d0bef35191d2f71fb4a.tar.gz |
* regclass.c: Revert my Jan 4 change to loop cost computation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index d1bcf30601c..1a45b244dc3 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1100,17 +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. - - Note that a block's loop depth starts at zero, not one! We - must not subract one from the loop depth as that could give - a negative shift count below. */ + 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, 5)); + loop_cost = 1 << (2 * MIN (bb->loop_depth - 1, 5)); for (insn = bb->head; ; insn = NEXT_INSN (insn)) { insn = scan_one_insn (insn, pass); |