arm.c (thumb1_reorg): When scanning backwards skip anything that's not a proper insn.

* arm.c (thumb1_reorg): When scanning backwards skip anything
	that's not a proper insn.

From-SVN: r210618
This commit is contained in:
Richard Earnshaw 2014-05-19 16:09:49 +00:00 committed by Richard Earnshaw
parent 68038e6a2d
commit 514b315679
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-05-19 Richard Earnshaw <rearnsha@arm.com>
* arm.c (thumb1_reorg): When scanning backwards skip anything
that's not a proper insn.
2014-05-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/61221

View File

@ -16935,7 +16935,7 @@ thumb1_reorg (void)
rtx prev, insn = BB_END (bb);
bool insn_clobbered = false;
while (insn != BB_HEAD (bb) && DEBUG_INSN_P (insn))
while (insn != BB_HEAD (bb) && !NONDEBUG_INSN_P (insn))
insn = PREV_INSN (insn);
/* Find the last cbranchsi4_insn in basic block BB. */