2012-04-02 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Apr 2012 15:13:45 +0000 (15:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Apr 2012 15:13:45 +0000 (15:13 +0000)
commit6eb99d8abbd976c74d7d6ea67b8710d047fd3348
tree12cfedd860ac2a60929d04de3b2faa9c19e70e6d
parent2cc03db8ab8e662fa2597a4631b890e75443f918
2012-04-02  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52756
* tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
(thread_through_loop_header): After threading through the loop latch
remove the split part from the loop and clear further threading
opportunities that would create a multiple entry loop.

* gcc.dg/torture/pr52756.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186085 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr52756.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c