re PR tree-optimization/49073 (g++ optimizer breaks do-while code)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 May 2011 14:19:05 +0000 (16:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 May 2011 14:19:05 +0000 (16:19 +0200)
commit6c66f73369dacc9889cfaa05f8a08813e7c45f1f
tree940cae516f3f04771fe6a0abd862dd3ee83bd9da
parent57b4d355a187943b042ca3e9a86bccf74c0e0d84
re PR tree-optimization/49073 (g++ optimizer breaks do-while code)

PR tree-optimization/49073
* gimple-fold.c (and_comparisons_1, or_comparisons_1): Return
NULL if PHI argument is SSA_NAME, whose def_stmt is dominated
by the PHI.
* tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.

* gcc.c-torture/execute/pr49073.c: New test.

From-SVN: r173948
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49073.c [new file with mode: 0644]
gcc/tree-ssa-ifcombine.c