re PR tree-optimization/71947 (x ^ y not folded to 0 if x == y by DOM)
authorJeff Law <law@redhat.com>
Mon, 10 Oct 2016 20:40:59 +0000 (14:40 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 10 Oct 2016 20:40:59 +0000 (14:40 -0600)
commitd30078b8e7dc6f94dbd8aa1b56f59bdf479303a8
tree066715968cbe99237d25613412f7aaa6312ca3c3
parentdb62593447dd61532f7b7411d603d844498fc0a9
re PR tree-optimization/71947 (x ^ y not folded to 0 if x == y by DOM)

        PR tree-optimization/71947
* tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
B with A within a single statement.

PR tree-optimization/71947
* gcc.dg/tree-ssa/pr71947-1.c: New test.
* gcc.dg/tree-ssa/pr71947-2.c: New test.
* gcc.dg/tree-ssa/pr71947-3.c: New test.
* gcc.dg/tree-ssa/pr71947-4.c: New test.
* gcc.dg/tree-ssa/pr71947-5.c: New test.
* gcc.dg/tree-ssa/pr71947-6.c: New test.

From-SVN: r240947
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr71947-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71947-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c [new file with mode: 0644]
gcc/tree-ssa-dom.c