re PR tree-optimization/41634 (ICE in dom)
authorRichard Guenther <rguenther@suse.de>
Fri, 9 Oct 2009 18:30:05 +0000 (18:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Oct 2009 18:30:05 +0000 (18:30 +0000)
commitaabf6a0372105ce6deb5780e39d648e92a491a37
treebc4e9a09cb8aa0923418bc4e26f89acdd15cce42
parent38265b74007bae4edb7a6b28a17cae94e51b1bdf
re PR tree-optimization/41634 (ICE in dom)

2009-10-09  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/41634
* tree-ssa-dom.c (remove_local_expressions_from_table): Assert
we remove the correct elements.
(optimize_stmt): Make sure to update stmt operands before
optimizing redundancies.

* gcc.c-torture/compile/pr41634.c: New testcase.

From-SVN: r152596
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41634.c [new file with mode: 0644]
gcc/tree-ssa-dom.c