re PR middle-end/35595 (build broke in newlib erf_lgamma.c for cris-elf)

PR middle-end/35595
	* tree-ssa-pre.c (bitmap_find_leader): Handle expression
	being a PHI_NODE.

From-SVN: r133237
This commit is contained in:
Richard Guenther 2008-03-15 03:53:12 +00:00 committed by Hans-Peter Nilsson
parent b2018c3367
commit 8f78ed0e99
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-03-15 Richard Guenther <rguenther@suse.de>
PR middle-end/35595
* tree-ssa-pre.c (bitmap_find_leader): Handle expression
being a PHI_NODE.
2008-03-14 Bob Wilson <bob.wilson@acm.org>
* doc/invoke.texi (Option Summary, Xtensa Options): Document

View file

@ -1431,7 +1431,8 @@ bitmap_find_leader (bitmap_set_t set, tree val, tree stmt)
if (stmt)
{
tree def_stmt = SSA_NAME_DEF_STMT (val);
if (bb_for_stmt (def_stmt) == bb_for_stmt (stmt)
if (TREE_CODE (def_stmt) != PHI_NODE
&& bb_for_stmt (def_stmt) == bb_for_stmt (stmt)
&& stmt_ann (def_stmt)->uid >= stmt_ann (stmt)->uid)
continue;
}