[Bug tree-optimization/49073] [4.6/4.7 Regression] g++ optimizer breaks do-while code
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 20 14:59:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49073
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-20 14:35:23 UTC ---
Author: jakub
Date: Fri May 20 14:35:20 2011
New Revision: 173951
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173951
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr49073.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/gimple-fold.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-ssa-ifcombine.c
More information about the Gcc-bugs
mailing list