aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-06-11 17:18:34 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-06-11 17:18:34 +0000
commit2d6f2dce793e917f00a366ed0d1c5d1545f5c50d (patch)
treeaffc1369f93a8ded57c3c19ce727b80746e336b2
parenta0349665f672f8840311f246a7390c6233034f1b (diff)
downloadgcc-2d6f2dce793e917f00a366ed0d1c5d1545f5c50d.zip
gcc-2d6f2dce793e917f00a366ed0d1c5d1545f5c50d.tar.gz
gcc-2d6f2dce793e917f00a366ed0d1c5d1545f5c50d.tar.bz2
* match.pd ((x & y) ^ (x | y)): Don't check for single_use.
From-SVN: r224390
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/match.pd5
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef428b3..066d669 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-11 Marek Polacek <polacek@redhat.com>
+
+ * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
+
2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/66252
diff --git a/gcc/match.pd b/gcc/match.pd
index 9a1317e..1ab2b1c 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -322,9 +322,8 @@ along with GCC; see the file COPYING3. If not see
/* (x & y) ^ (x | y) -> x ^ y */
(simplify
- (bit_xor:c (bit_and@2 @0 @1) (bit_ior@3 @0 @1))
- (if (single_use (@2) && single_use (@3))
- (bit_xor @0 @1)))
+ (bit_xor:c (bit_and @0 @1) (bit_ior @0 @1))
+ (bit_xor @0 @1))
(simplify
(abs (negate @0))