gcse.c (hash_scan_set): If the next nonnote insn is in a different basic block insert the set.

2007-10-11  Richard Guenther  <rguenther@suse.de>

	* gcse.c (hash_scan_set): If the next nonnote insn is in
	a different basic block insert the set.

From-SVN: r129230
This commit is contained in:
Richard Guenther 2007-10-11 09:46:04 +00:00 committed by Richard Biener
parent c343d5a731
commit 1ef40d6b95
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-10-11 Richard Guenther <rguenther@suse.de>
* gcse.c (hash_scan_set): If the next nonnote insn is in
a different basic block insert the set.
2007-10-11 Richard Guenther <rguenther@suse.de>
PR middle-end/33724

View File

@ -1761,6 +1761,7 @@ hash_scan_set (rtx pat, rtx insn, struct hash_table *table)
oprs_available_p searches from INSN on. */
&& (insn == BB_END (BLOCK_FOR_INSN (insn))
|| (tmp = next_nonnote_insn (insn)) == NULL_RTX
|| BLOCK_FOR_INSN (tmp) != BLOCK_FOR_INSN (insn)
|| oprs_available_p (pat, tmp)))
insert_set_in_table (pat, insn, table);
}