PR middle-end/35595
* tree-ssa-pre.c (bitmap_find_leader): Handle expression
being a PHI_NODE.
From-SVN: r133237
+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
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;
}