Always combine comparisons or conversions from booleans.
authorPatrick Palka <ppalka@gcc.gnu.org>
Mon, 17 Nov 2014 02:01:36 +0000 (02:01 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Mon, 17 Nov 2014 02:01:36 +0000 (02:01 +0000)
commitc1c7f1fc21ff3b3ebbb8bf7eb91f68b2fec64d60
tree3ba9abd59af95a71bcd793ab1693a17da7c20e53
parent6e2826178d775918fd0be177bdb8ae876f21965c
Always combine comparisons or conversions from booleans.

2014-11-16  Patrick Palka  <ppalka@gcc.gnu.org>

gcc/
PR middle-end/63790
* tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
Always combine comparisons or conversions from booleans.

gcc/testsuite/
PR middle-end/63790
* gcc.dg/tree-ssa/pr21031.c: Drop XFAIL.
* gcc.dg/tree-ssa/forwprop-29.c: New test.

From-SVN: r217638
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-29.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr21031.c
gcc/tree-ssa-forwprop.c