http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52969
--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-13 12:27:11 UTC --- Author: rguenth Date: Fri Apr 13 12:27:02 2012 New Revision: 186417 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186417 Log: 2012-04-13 Richard Guenther <rguent...@suse.de> PR tree-optimization/52969 * tree-if-conv.c (predicate_mem_writes): Properly gimplify the condition for the COND_EXPR and handle predicate negation by swapping the COND_EXPR arms. * gcc.dg/torture/pr52969.c: New testcase. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr52969.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/tree-if-conv.c