re PR target/61544 (ICE due to thumb1_reorg function mishandles label type insn)

2014-06-18  Terry Guo  <terry.guo@arm.com>

	PR target/61544
	* config/arm/arm.c (thumb1_reorg): Move to next basic block if we
	reach the head.

From-SVN: r211775
This commit is contained in:
Terry Guo 2014-06-18 10:11:08 +00:00 committed by Xuepeng Guo
parent ad4684c22a
commit 35d147ef16
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-06-18 Terry Guo <terry.guo@arm.com>
PR target/61544
* config/arm/arm.c (thumb1_reorg): Move to next basic block if we
reach the head.
2014-06-18 Richard Biener <rguenther@suse.de>
* common.opt (fssa-phiopt): New option.

View File

@ -16946,7 +16946,8 @@ thumb1_reorg (void)
insn = PREV_INSN (insn);
/* Find the last cbranchsi4_insn in basic block BB. */
if (INSN_CODE (insn) != CODE_FOR_cbranchsi4_insn)
if (insn == BB_HEAD (bb)
|| INSN_CODE (insn) != CODE_FOR_cbranchsi4_insn)
continue;
/* Get the register with which we are comparing. */