re PR tree-optimization/65053 (PostgreSQL miscompilation)
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Feb 2015 23:20:31 +0000 (00:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Feb 2015 23:20:31 +0000 (00:20 +0100)
commitf7a0790f3ccdf71e47e8cb79af7820539361f9d2
treef6170a20c73ac9690afa1cf444ae8238f2e77498
parente5d9235ba945870c20a70499d5565edfb2bd4264
re PR tree-optimization/65053 (PostgreSQL miscompilation)

PR tree-optimization/65053
* tree-ssa-phiopt.c (value_replacement): When moving assign before
cond, either reset VR on lhs or set it to phi result VR.

* gcc.c-torture/execute/pr65053-1.c: New test.
* gcc.c-torture/execute/pr65053-2.c: New test.

From-SVN: r220700
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr65053-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr65053-2.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c