+2000-05-10 Nick Clifton <nickc@redhat.com>
+
+ * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
+ when optimising for size.
+ (mark_used_regs:) Ditto.
+ (try_pre_increment_1): Ditto.
+
2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
* cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
/* Count an extra reference to the reg. When a reg is
incremented, spilling it is worse, so we want to make
that less likely. */
- REG_N_REFS (regno) += pbi->bb->loop_depth + 1;
+ REG_N_REFS (regno) += (optimize_size ? 1
+ : pbi->bb->loop_depth + 1);
/* Count the increment as a setting of the register,
even though it isn't a SET in rtl. */
REG_BASIC_BLOCK (regno) = REG_BLOCK_GLOBAL;
/* Count (weighted) number of uses of each reg. */
- REG_N_REFS (regno) += pbi->bb->loop_depth + 1;
+ REG_N_REFS (regno) += (optimize_size ? 1
+ : pbi->bb->loop_depth + 1);
}
}
less likely. */
if (regno >= FIRST_PSEUDO_REGISTER)
{
- REG_N_REFS (regno) += pbi->bb->loop_depth + 1;
+ REG_N_REFS (regno) += (optimize_size ? 1
+ : pbi->bb->loop_depth + 1);
REG_N_SETS (regno)++;
}
return 1;