re PR tree-optimization/63916 (value-numbering fails to forward variable addresses)
authorRichard Biener <rguenther@suse.de>
Wed, 3 Jun 2015 08:02:10 +0000 (08:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Jun 2015 08:02:10 +0000 (08:02 +0000)
commit4da60082232bc3dbf5782687e9f0ff25d733de10
tree4a730c210522915db4aab6f110f5afa8c3aa58b7
parentb9b79ba4264cf635fbd3cc66530c5eb83d3ce568
re PR tree-optimization/63916 (value-numbering fails to forward variable addresses)

2015-06-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63916
* tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
Forward-propagate non-invariant addresses by splicing their
reference ops if the result isn't going to be used by PRE.
(vn_reference_lookup_3): Remove pointless assert.

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

From-SVN: r224061
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-45.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c