re PR tree-optimization/40321 (internal compiler error: in compute_antic, at tree...
authorRichard Guenther <rguenther@suse.de>
Fri, 17 Jul 2009 12:44:05 +0000 (12:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Jul 2009 12:44:05 +0000 (12:44 +0000)
commit7763473eb959acdbe5023c7527e964e495111384
treee32efbf1a581b8fbb47ad39a277114734b09202c
parent4f934809190163d548edbde5bae728bf954c5702
re PR tree-optimization/40321 (internal compiler error: in compute_antic, at tree-ssa-pre.c:2501)

2009-07-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/40321
* tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
PHI nodes to the maximal set.
(make_values_for_phi): Add PHI arguments to the maximal set.
(execute_pre): Dump PHI_GEN and the maximal set.

* gcc.c-torture/compile/pr40321.c: New testcase.
* g++.dg/torture/pr40321.C: Likewise.

From-SVN: r149744
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr40321.C [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr40321.c [new file with mode: 0644]
gcc/tree-ssa-pre.c