aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 2db6d20..ec3d63c 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -5526,7 +5526,7 @@ attempt_auto_inc (pbi, inc, insn, mem, incr, incr_reg)
/* 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_FREQ (regno) += (optimize_size || !phi->bb->frequency
+ REG_FREQ (regno) += (optimize_size || !pbi->bb->frequency
? 1 : pbi->bb->frequency);
/* Count the increment as a setting of the register,
@@ -6115,7 +6115,7 @@ try_pre_increment_1 (pbi, insn)
so we want to make that less likely. */
if (regno >= FIRST_PSEUDO_REGISTER)
{
- REG_FREQ (regno) += (optimize_size || !phi->bb->frequency
+ REG_FREQ (regno) += (optimize_size || !pbi->bb->frequency
? 1 : pbi->bb->frequency);
REG_N_SETS (regno)++;
}