diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-13 09:38:09 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-13 09:38:09 +0000 |
commit | 319f4d7d38a1d99bf8e133124156baaa65d0c013 (patch) | |
tree | 87fee08c0519c7e704eeb35297b8df11bdc3234d /gcc/config/mn10300 | |
parent | 75f217307773b85a6ab9ed4eabb630b23282e726 (diff) | |
download | gcc-319f4d7d38a1d99bf8e133124156baaa65d0c013.tar.gz |
2013-02-13 Richard Biener <rguenther@suse.de>
* config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
Fix loop discovery code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195998 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r-- | gcc/config/mn10300/mn10300.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index 4f9a81daefc..32b224fd687 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -3235,9 +3235,7 @@ mn10300_scan_for_setlb_lcc (void) compute_bb_for_insn (); /* Find the loops. */ - if (flow_loops_find (& loops) < 1) - DUMP ("No loops found", NULL_RTX); - current_loops = & loops; + loop_optimizer_init (AVOID_CFG_MODIFICATIONS); /* FIXME: For now we only investigate innermost loops. In practice however if an inner loop is not suitable for use with the SETLB/Lcc insns, it may @@ -3287,15 +3285,7 @@ mn10300_scan_for_setlb_lcc (void) reason); } -#if 0 /* FIXME: We should free the storage we allocated, but - for some unknown reason this leads to seg-faults. */ - FOR_EACH_LOOP (liter, loop, 0) - free_simple_loop_desc (loop); - - flow_loops_free (current_loops); -#endif - - current_loops = NULL; + loop_optimizer_finalize (); df_finish_pass (false); |