re PR tree-optimization/77745 (Inconsistent application of aliasing rules)
authorRichard Biener <rguenther@suse.de>
Tue, 27 Sep 2016 12:56:38 +0000 (12:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 27 Sep 2016 12:56:38 +0000 (12:56 +0000)
commit59896334f97c1d58c221d2975e33abccd0d331d5
tree98081d1a890b16cf38fe47a5ae0e7aa4b27bb30d
parent4e7e89e8c9acdbffa6546d5e6056c7b81238c88f
re PR tree-optimization/77745 (Inconsistent application of aliasing rules)

2016-09-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77745
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
When removing redundant stores make sure to check compatibility
of the TBAA state for downstream accesses.
* tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
value-numbering virtual operands for store matches.

* g++.dg/torture/pr77745.C: New testcase.

From-SVN: r240534
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr77745.C [new file with mode: 0644]
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c