Commit 35d147ef by Terry Guo Committed by Xuepeng Guo

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
parent ad4684c2
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> 2014-06-18 Richard Biener <rguenther@suse.de>
* common.opt (fssa-phiopt): New option. * common.opt (fssa-phiopt): New option.
......
...@@ -16946,7 +16946,8 @@ thumb1_reorg (void) ...@@ -16946,7 +16946,8 @@ thumb1_reorg (void)
insn = PREV_INSN (insn); insn = PREV_INSN (insn);
/* Find the last cbranchsi4_insn in basic block BB. */ /* 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; continue;
/* Get the register with which we are comparing. */ /* Get the register with which we are comparing. */
......
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