From: Renlin Li Date: Fri, 23 Sep 2016 10:16:22 +0000 (+0000) Subject: [PATCH][IRA]Initialize ira_use_lra_p early by moving the initialization into X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23427d518be109020c09e5b81e7da7f67ca2e825;p=gcc.git [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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 63c6464ce98..210d7f9be29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-23 Renlin Li + + * ira.c (ira): Move ira_use_lra_p initialization code to ... + (ira_init_once): Here. + 2016-09-23 Uros Bizjak Jakub Jelinek diff --git a/gcc/ira.c b/gcc/ira.c index 62612521edb..c2e04c2b7a8 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. */