Message ID | 57E27333.5000808@foss.arm.com |
---|---|
State | New |
Headers | show |
On 09/21/2016 01:46 PM, Renlin Li wrote: > * ira.c (ira): Move ira_use_lra_p initialization code to ... > (ira_init_once): Here. LGTM. Bernd
diff --git a/gcc/ira.c b/gcc/ira.c index f8a59e3..9e7ba52 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 @@ -5082,7 +5084,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. */