re PR tree-optimization/61607 (DOM missed jump threading and destroyed loops)
authorRichard Biener <rguenther@suse.de>
Thu, 26 Jun 2014 11:29:34 +0000 (11:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 26 Jun 2014 11:29:34 +0000 (11:29 +0000)
commit73c7d6bc25d9bb86bdb81283d237a5b94607ac8c
tree1c939200ec3ae5f46afa0de763e00de9f4d4e65b
parent1d805a56b6a5c2252baccd257e00a719a22ad143
re PR tree-optimization/61607 (DOM missed jump threading and destroyed loops)

2014-06-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61607
* tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
explaining why we restrict copies on loop depth.
* tree-ssa-dom.c (cprop_operand): Remove restriction on
on loop depth.
(record_equivalences_from_phis): Instead add it here.

* gcc.dg/tree-ssa/ssa-dom-thread-5.c: New testcase.

From-SVN: r212026
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-5.c [new file with mode: 0644]
gcc/tree-ssa-copy.c
gcc/tree-ssa-dom.c