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:
parent
70b70ce8ca
commit
4e5d521bb5
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue