diff options
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 05850de..915a9a0 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -4109,6 +4109,12 @@ order_regs_for_reload (chain) COPY_HARD_REG_SET (bad_spill_regs, bad_spill_regs_global); + for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) + { + hard_reg_n_uses[i].regno = i; + hard_reg_n_uses[i].uses = 0; + } + /* Count number of uses of each hard reg by pseudo regs allocated to it and then order them by decreasing use. */ @@ -4116,9 +4122,6 @@ order_regs_for_reload (chain) { int j; - hard_reg_n_uses[i].regno = i; - hard_reg_n_uses[i].uses = 0; - /* Test the various reasons why we can't use a register for spilling in this insn. */ if (fixed_regs[i] |