diff options
author | Jan Hubicka <hubicka@freesoft.cz> | 2000-01-04 19:26:39 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2000-01-04 18:26:39 +0000 |
commit | 64615302108ad099b80b6cccdf0e3ccdd988021c (patch) | |
tree | 339994eec3449de7beab85c4f0f356a75044cf01 /gcc/regclass.c | |
parent | 7f103e88351413723e4dc3013824cf5a4c7a51f2 (diff) | |
download | gcc-64615302108ad099b80b6cccdf0e3ccdd988021c.zip gcc-64615302108ad099b80b6cccdf0e3ccdd988021c.tar.gz gcc-64615302108ad099b80b6cccdf0e3ccdd988021c.tar.bz2 |
regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing compilation.
* regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
compilation.
From-SVN: r31209
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 667250c..d1bcf30 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1141,7 +1141,9 @@ regclass (f, nregs, dump) register int class; register struct costs *p = &costs[i]; - if (!REG_N_REFS (i)) + /* In non-optimizing compilation REG_N_REFS is not initialized + yet. */ + if (optimize && !REG_N_REFS (i)) continue; for (class = (int) ALL_REGS - 1; class > 0; class--) |