spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of non-NOTE insns.

* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
	non-NOTE insns.

From-SVN: r162845
This commit is contained in:
Ulrich Weigand 2010-08-03 18:01:52 +00:00 committed by Ulrich Weigand
parent 241a2b9ec2
commit 051de0eb4f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
non-NOTE insns.
2010-08-03 Jan Hubicka <jh@suse.cz>
* ipa-split.c (struct split_point): Add split_part_set_retval.

View File

@ -2330,7 +2330,7 @@ spu_emit_branch_hint (rtx before, rtx branch, rtx target,
return;
/* If we have a Basic block note, emit it after the basic block note. */
if (NOTE_KIND (before) == NOTE_INSN_BASIC_BLOCK)
if (NOTE_INSN_BASIC_BLOCK_P (before))
before = NEXT_INSN (before);
branch_label = gen_label_rtx ();