2009-07-17 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jul 2009 12:44:05 +0000 (12:44 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jul 2009 12:44:05 +0000 (12:44 +0000)
commit142d8c7745493b031e0491a7a656f38c09665d24
treee32efbf1a581b8fbb47ad39a277114734b09202c
parent39a1041d4f90b5324a57e86bca96d916638c962c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149744 138bc75d-0d04-0410-961f-82ee72b054a4
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