diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-30 20:03:37 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-30 20:03:37 +0000 |
commit | eefdec482d3b01c97ab6d360dbee968b9ca9c252 (patch) | |
tree | aa952727c06ed38ed797f094dd095bd14f5da5f4 /gcc/regclass.c | |
parent | 7572bd481e5ce1c6ea23bd61461bc3adb55ba901 (diff) | |
download | gcc-eefdec482d3b01c97ab6d360dbee968b9ca9c252.tar.gz |
* flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
(attempt_auto_inc): LIkewise.
(mark_used_reg): Likewise.
(try_pre_increment_1): Likewise.
* regclass.c (regclass): Likewise.
* global.c (allocno_compare): Update comment; change scaling factor.
* local-alloc.c (QTY_CMP_PRI): Likewise.
* regs.h (REG_FREQ_FROM_BB): New.
(REG_FREQ_MAX): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 2d80e7eb84a..b16a677d805 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1233,7 +1233,7 @@ regclass (f, nregs, dump) if (!optimize) { - frequency = 1; + frequency = REG_FREQ_MAX; for (insn = f; insn; insn = NEXT_INSN (insn)) insn = scan_one_insn (insn, pass); } @@ -1246,10 +1246,7 @@ regclass (f, nregs, dump) 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) - frequency = 1; - else - frequency = bb->frequency ? bb->frequency : 1; + frequency = REG_FREQ_FROM_BB (bb); for (insn = bb->head; ; insn = NEXT_INSN (insn)) { insn = scan_one_insn (insn, pass); |