From 64615302108ad099b80b6cccdf0e3ccdd988021c Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 4 Jan 2000 19:26:39 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/regclass.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d630d441b4..f186e3e8108 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 4 19:22:39 MET 2000 Jan Hubicka + + * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing + compilation. + 2000-01-04 Stan Cox * haifa-sched.c (build_control_flow): Change unreachable simple diff --git a/gcc/regclass.c b/gcc/regclass.c index 667250c7cc6..d1bcf30601c 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--) -- 2.30.2