From 23427d518be109020c09e5b81e7da7f67ca2e825 Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Fri, 23 Sep 2016 10:16:22 +0000 Subject: [PATCH][IRA]Initialize ira_use_lra_p early by moving the initialization into ira_init_once (). ira_use_lra_p previously will be used unintialized in backend_init_target (). gcc/ 2016-09-23 Renlin Li * ira.c (ira): Move ira_use_lra_p initialization code to ... (ira_init_once): Here. From-SVN: r240418 --- gcc/ira.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/ira.c') diff --git a/gcc/ira.c b/gcc/ira.c index 6261252..c2e04c2 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -1665,6 +1665,8 @@ ira_init_once (void) { ira_init_costs_once (); lra_init_once (); + + ira_use_lra_p = targetm.lra_p (); } /* Free ira_max_register_move_cost, ira_may_move_in_cost and @@ -5067,7 +5069,6 @@ ira (FILE *f) ira_conflicts_p = optimize > 0; - ira_use_lra_p = targetm.lra_p (); /* If there are too many pseudos and/or basic blocks (e.g. 10K pseudos and 10K blocks or 100K pseudos and 1K blocks), we will use simplified and faster algorithms in LRA. */ -- cgit v1.1