fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and (X & Y) ^ Y -> ~X & Y transform...
authorRichard Biener <rguenther@suse.de>
Wed, 1 Jul 2015 07:42:10 +0000 (07:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Jul 2015 07:42:10 +0000 (07:42 +0000)
commit97e7739106863e3d334a8f9bb0cfcc8ae0e972de
tree06bc5789da51629911c3c7b5192a9b241054aaf7
parenta64be36b477db8ab8a10b13c2d18ede5b7f08738
fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and (X & Y) ^ Y -> ~X & Y transforms to ...

2015-07-01  Richard Biener  <rguenther@suse.de>

* fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
(X & Y) ^ Y -> ~X & Y transforms to ...
* match.pd: ... here.

From-SVN: r225225
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd