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 8ee7505..5a729c7 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2512,8 +2512,6 @@ life_analysis (f, file, flags)
if (flags & PROP_SCAN_DEAD_CODE)
init_alias_analysis ();
- max_regno = max_reg_num ();
-
/* Always remove no-op moves. Do this before other processing so
that we don't have to keep re-scanning them. */
delete_noop_moves (f);
@@ -3206,6 +3204,8 @@ allocate_reg_life_data ()
{
int i;
+ max_regno = max_reg_num ();
+
/* Recalculate the register space, in case it has grown. Old style
vector oriented regsets would set regset_{size,bytes} here also. */
allocate_reg_info (max_regno, FALSE, FALSE);