]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* match.pd ((x & y) ^ (x | y)): Don't check for single_use.
authorMarek Polacek <polacek@redhat.com>
Thu, 11 Jun 2015 17:18:34 +0000 (17:18 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 11 Jun 2015 17:18:34 +0000 (17:18 +0000)
From-SVN: r224390

gcc/ChangeLog
gcc/match.pd

index ef428b351a6cef35a4a2cbb25fcbf139aee9c84e..066d66916803f67e72805ba1de36e875c9a0c157 100644 (file)
@@ -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
index 9a1317e1f230eb78b000fa11af0c4a5f257707a6..1ab2b1c0056829a33bf7a7b8279e8efde8354fb3 100644 (file)
@@ -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))