tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS when comparing against a store...
authorRichard Biener <rguenther@suse.de>
Fri, 5 Jul 2019 12:53:19 +0000 (12:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 5 Jul 2019 12:53:19 +0000 (12:53 +0000)
commit66076dcb60bee1c3d2c41ced5424ada90149d7fc
tree431adab5eac9b66fbd7b156897aab342aa7b3950
parentfb4697e30bd0cd4bda66932e21c183273a5d1e63
tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS when comparing against a store with possibly the same value.

2019-07-05  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
when comparing against a store with possibly the same value.

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

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