From c38c11a10aecab37d938dee5a22276e3304fdd53 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 27 May 2016 03:08:36 +0930 Subject: [PATCH] ira.c bb_loop_depth PR rtl-optimization/71275 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth for update_equiv_regs and combine_and_move_insns. From-SVN: r236789 --- gcc/ChangeLog | 6 ++++++ gcc/ira.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a76af4c9e9..30c86158de8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-27 Alan Modra + + PR rtl-optimization/71275 + * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth + for update_equiv_regs and combine_and_move_insns. + 2016-05-26 Uros Bizjak * config/i386/i386.md (*movqi_internal) : Use diff --git a/gcc/ira.c b/gcc/ira.c index 55b4bd700be..1b269eac32c 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -5171,6 +5171,7 @@ ira (FILE *f) ira_set_pseudo_classes (true, ira_dump_file); init_alias_analysis (); + loop_optimizer_init (AVOID_CFG_MODIFICATIONS); reg_equiv = XCNEWVEC (struct equivalence, max_reg_num ()); update_equiv_regs (); @@ -5186,6 +5187,7 @@ ira (FILE *f) if (optimize) add_store_equivs (); + loop_optimizer_finalize (); end_alias_analysis (); free (reg_equiv); -- 2.30.2