re PR tree-optimization/81365 (GCC miscompiles swap)
authorJakub Jelinek <jakub@redhat.com>
Mon, 17 Jul 2017 09:10:23 +0000 (11:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 17 Jul 2017 09:10:23 +0000 (11:10 +0200)
commite8dd1313132e5aaa4c66b0bd2135919707dc45b6
treeab28fd58473d7498affb0856f0fba16c2c508561
parent764eec6cf591fcfe9bd0fe7760ecb657cfa6abc0
re PR tree-optimization/81365 (GCC miscompiles swap)

PR tree-optimization/81365
* tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
aggregate moves onto bb predecessor edges, make sure there are no
loads that could alias the lhs in between the start of bb and the
loads from *phi.

* g++.dg/torture/pr81365.C: New test.

From-SVN: r250261
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr81365.C [new file with mode: 0644]
gcc/tree-ssa-phiprop.c