From: Alexander Monakov Date: Mon, 27 Aug 2018 14:08:50 +0000 (+0300) Subject: match.pd: add single-use check for (x & y) ^ y -> ~x & y (PR 85758) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de5b5228631d14e272ec8bf93827dea3da16a33d;p=gcc.git match.pd: add single-use check for (x & y) ^ y -> ~x & y (PR 85758) PR tree-optimization/85758 * match.pd ((X & Y) ^ Y): Add :s qualifier to inner expression. From-SVN: r263887 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ecd5f60e1d..123d76c8680 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-08-27 Alexander Monakov + + PR tree-optimization/85758 + * match.pd ((X & Y) ^ Y): Add :s qualifier to inner expression. + 2018-08-27 David Malcolm PR 87091 diff --git a/gcc/match.pd b/gcc/match.pd index cb3c93e3e16..d43e52d05cd 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -1027,7 +1027,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (for opo (bit_and bit_xor) opi (bit_xor bit_and) (simplify - (opo:c (opi:c @0 @1) @1) + (opo:c (opi:cs @0 @1) @1) (bit_and (bit_not @0) @1))) /* Given a bit-wise operation CODE applied to ARG0 and ARG1, see if both