Commit 4861a1f7 by Richard Biener Committed by Richard Biener

mn10300.c (mn10300_scan_for_setlb_lcc): Fix loop discovery code.

2013-02-13  Richard Biener  <rguenther@suse.de>

	* config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
	Fix loop discovery code.

From-SVN: r195998
parent b9526fa5
2013-02-13 Richard Biener <rguenther@suse.de>
* config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
Fix loop discovery code.
2013-02-12 Vladimir Makarov <vmakarov@redhat.com> 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
PR inline-asm/56148 PR inline-asm/56148
......
...@@ -3235,9 +3235,7 @@ mn10300_scan_for_setlb_lcc (void) ...@@ -3235,9 +3235,7 @@ mn10300_scan_for_setlb_lcc (void)
compute_bb_for_insn (); compute_bb_for_insn ();
/* Find the loops. */ /* Find the loops. */
if (flow_loops_find (& loops) < 1) loop_optimizer_init (AVOID_CFG_MODIFICATIONS);
DUMP ("No loops found", NULL_RTX);
current_loops = & loops;
/* FIXME: For now we only investigate innermost loops. In practice however /* 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 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) ...@@ -3287,15 +3285,7 @@ mn10300_scan_for_setlb_lcc (void)
reason); reason);
} }
#if 0 /* FIXME: We should free the storage we allocated, but loop_optimizer_finalize ();
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;
df_finish_pass (false); df_finish_pass (false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment