summaryrefslogtreecommitdiffstats
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index f2226c402aa..ef0c51c6500 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -3854,11 +3854,12 @@ if_convert (int x_life_data_ok)
&& (!flag_reorder_blocks_and_partition || !no_new_pseudos
|| !targetm.have_named_sections))
{
- struct loops loops;
-
- flow_loops_find (&loops);
- mark_loop_exit_edges (&loops);
- flow_loops_free (&loops);
+ loop_optimizer_init (0);
+ if (current_loops)
+ {
+ mark_loop_exit_edges (current_loops);
+ loop_optimizer_finalize ();
+ }
free_dominance_info (CDI_DOMINATORS);
}
OpenPOWER on IntegriCloud