* match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
commitc8c9ffdbecc7e19880c05674ccd85826e7d464de
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 17:21:56 +0000 (4 17:21 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 17:21:56 +0000 (4 17:21 +0000)
tree5fec3524fe94c084995893d0a77504b8dfcb5c01
parent62b41575ba649075b90686b4abc4df23ff64f00f
* match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
simplifier to narrow arithmetic.
* generic-match-head.c: (types_match, single_use): New functions.
* gimple-match-head.c: (types_match, single_use): New functions.

* gcc.dg/tree-ssa/shorten-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222771 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/generic-match-head.c
gcc/gimple-match-head.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/shorten-1.c [new file with mode: 0644]