2015-07-21 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 2015 14:03:57 +0000 (14:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 2015 14:03:57 +0000 (14:03 +0000)
commit9fe7e117bf462cc501594a04890da0e21d408b5e
tree9d1fbe883757df7ca019c76a26b10b1a9cb1fa9d
parent7de5731e9d64cbcc68b697badf74202348767ee5
2015-07-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66948
* genmatch.c (capture_info::walk_match): Also recurse to
captures.  Properly compute expr state from captures of
captures.
* match.pd: Add single-use guards to
(X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226041 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genmatch.c
gcc/match.pd