re PR tree-optimization/52969 (ICE in in get_expr_operands, at tree-ssa-operands...
authorRichard Guenther <rguenther@suse.de>
Fri, 13 Apr 2012 12:22:16 +0000 (12:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 Apr 2012 12:22:16 +0000 (12:22 +0000)
commit95df37bf8bded356f45539ecaa8bff3078d9cf86
treea1b22ec581d09f617460923d197f29eb753d4509
parentd0bcb5c33fec86bb2f2beac24c112f1fd0e96cda
re PR tree-optimization/52969 (ICE in in get_expr_operands, at tree-ssa-operands.c:1035 with -ftree-loop-if-convert-stores)

2012-04-13  Richard Guenther  <rguenther@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.

From-SVN: r186416
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr52969.c [new file with mode: 0644]
gcc/tree-if-conv.c