re PR tree-optimization/70497 (Missed CSE of subregs on GIMPLE)
authorRichard Biener <rguenther@suse.de>
Tue, 10 May 2016 08:20:43 +0000 (08:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 May 2016 08:20:43 +0000 (08:20 +0000)
commit64ea4e151b40fde37eb2b3190731f03c4a65dcf3
treeb05b58da2c9cc46b7fbde8e9ef7b5966d8ea1a1d
parent5a96dae3efa97317540aee2a55f717aab1efe064
re PR tree-optimization/70497 (Missed CSE of subregs on GIMPLE)

2016-05-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70497
PR tree-optimization/28367
* tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
split out from ...
(visit_reference_op_load): ... here.
(vn_reference_lookup_3): Use it to handle subreg-like accesses
with simplified BIT_FIELD_REFs.
* tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
* tree-complex.c (extract_component): Handle BIT_FIELD_REFs
correctly.

* gcc.dg/torture/20160404-1.c: New testcase.
* gcc.dg/tree-ssa/ssa-fre-54.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-55.c: Likewise.

From-SVN: r236066
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/20160404-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-54.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c [new file with mode: 0644]
gcc/tree-complex.c
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c