]> git.ipfire.org Git - thirdparty/gcc.git/commit
match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New simplifier to...
authorJeff Law <law@redhat.com>
Mon, 4 May 2015 17:21:56 +0000 (11:21 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 4 May 2015 17:21:56 +0000 (11:21 -0600)
commit383be4a8c1518edfc2b74d31027e21d43c101ff0
tree5fec3524fe94c084995893d0a77504b8dfcb5c01
parente2bbbfbcbd27cc6ef3f68d0d619f54d29ca0aa05
match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New simplifier to narrow arithmetic.

* 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.

From-SVN: r222771
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]