pr58387.c: New test.
authorJeff Law <law@redhat.com>
Tue, 17 Sep 2013 17:27:41 +0000 (11:27 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 17 Sep 2013 17:27:41 +0000 (11:27 -0600)
commit8d34e421a5668e25a992bd0b349cb81e91ee3e49
tree94bfe22f7d19095ab53bd28cb6fb75e78e2f9196
parentc152901f5e1082de4ede3bc98c7ede2dea361e8d
pr58387.c: New test.

* gcc.c-torture/execute/pr58387.c: New test.

* tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
edge implied equivalences into successor phis.
* tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
here from tree-ssa-threadedge.c.
(mark_threaded_blocks): When threading through a joiner, if both
successors of the joiner's clone reach the same block, verify the
PHI arguments are equal.  If not, cancel the jump threading request.
* tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
tree-ssa-threadupdate.c
(thread_across_edge): Don't check PHI argument equality when
threading through joiner block here.

From-SVN: r202660
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr58387.c [new file with mode: 0644]
gcc/tree-ssa-dom.c
gcc/tree-ssa-threadedge.c
gcc/tree-ssa-threadupdate.c