bfin.c (bfin_optimize_loop): When looking for the last insn before the loop_end instruction...

* config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
	insn before the loop_end instruction, don't look past labels.

From-SVN: r146980
This commit is contained in:
Bernd Schmidt 2009-04-29 15:40:06 +00:00 committed by Bernd Schmidt
parent 70b70ce8ca
commit 4e5d521bb5
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
scan backwards to try to find a constant to initialize it.
* config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
insn before the loop_end instruction, don't look past labels.
2009-04-29 Richard Guenther <rguenther@suse.de>
PR middle-end/39937

View File

@ -4012,6 +4012,7 @@ bfin_optimize_loop (loop_info loop)
break;
if (single_pred_p (bb)
&& single_pred_edge (bb)->flags & EDGE_FALLTHRU
&& single_pred (bb) != ENTRY_BLOCK_PTR)
{
bb = single_pred (bb);