re PR tree-optimization/45397 (Issues with integer narrowing conversions)
authorRichard Biener <rguenther@suse.de>
Mon, 27 Feb 2017 08:51:28 +0000 (08:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 27 Feb 2017 08:51:28 +0000 (08:51 +0000)
commit68b948d3ba7cee54ba9f03a5b04f505f9c7538ff
tree2c076d7eb5021139981bfc90131783fb89462744
parent69a2e8a10b5e80bb696269f7d6365a3efd16c18d
re PR tree-optimization/45397 (Issues with integer narrowing conversions)

2017-02-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/45397
* tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
* tree-ssa-sccvn.c (valueized_wider_op): New helper.
(visit_nary_op): Add pattern matching for CSEing sign-changed
or truncated operations with wider ones.

* gcc.dg/tree-ssa/pr45397.c: New testcase.

From-SVN: r245752
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr45397.c [new file with mode: 0644]
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c