* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.

From-SVN: r128988
This commit is contained in:
Alexandre Oliva 2007-10-03 16:58:25 +00:00 committed by Alexandre Oliva
parent 02a4823b86
commit 92ddef6949
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-10-03 Alexandre Oliva <aoliva@redhat.com>
* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
2007-10-03 Alexandre Oliva <aoliva@redhat.com>
* gcse.c (hash_scan_set): Insert set in insn before note at

View File

@ -2702,7 +2702,8 @@ rtl_block_ends_with_call_p (basic_block bb)
while (!CALL_P (insn)
&& insn != BB_HEAD (bb)
&& keep_with_call_p (insn))
&& (keep_with_call_p (insn)
|| NOTE_P (insn)))
insn = PREV_INSN (insn);
return (CALL_P (insn));
}