re PR tree-optimization/87261 (Optimize bool expressions)
authorMCC CS <deswurstes@users.noreply.github.com>
Mon, 1 Oct 2018 11:25:45 +0000 (11:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 1 Oct 2018 11:25:45 +0000 (11:25 +0000)
commit03cc70b5f1999fe04354c0ba2227fce733308ad4
tree5a3793f5ff39ac349b32705b43bfed6b3c5d1f2e
parent6cc430c19a9c94835d31f171065f32f5b1863183
re PR tree-optimization/87261 (Optimize bool expressions)

2018-10-01  MCC CS <deswurstes@users.noreply.github.com>

PR tree-optimization/87261
* match.pd: Remove trailing whitespace.
Add (x & y) | ~(x | y) -> ~(x ^ y),
(~x | y) ^ (x ^ y) -> x | ~y and (x ^ y) | ~(x | y) -> ~(x & y)

* gcc.dg/pr87261.c: New test.

From-SVN: r264744
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87261.c [new file with mode: 0644]