* gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.

From-SVN: r61884
This commit is contained in:
Josef Zlomek 2003-01-27 12:30:35 +01:00 committed by Josef Zlomek
parent 90a2176452
commit 244d05fb87
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-27 Josef Zlomek <zlomekj@suse.cz>
* gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
2003-01-27 Richard Earnshaw <rearnsha@arm.com>
PR optimization/9090

View File

@ -4126,6 +4126,7 @@ constprop_register (insn, from, to, alter_jumps)
conditional branch instructions first. */
if (alter_jumps
&& (sset = single_set (insn)) != NULL
&& NEXT_INSN (insn)
&& any_condjump_p (NEXT_INSN (insn)) && onlyjump_p (NEXT_INSN (insn)))
{
rtx dest = SET_DEST (sset);