]> git.ipfire.org Git - thirdparty/gcc.git/commit
2014-10-16 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Oct 2014 10:13:52 +0000 (10:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Oct 2014 10:13:52 +0000 (10:13 +0000)
commitfc8021097ec7542658f7b035604de66387c3d50e
tree20fc664da392c7860ee5505c631575ae25f7fc13
parent520fefde3c47d8d12c08512244a4d838b1cc41c3
2014-10-16  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63168
* tree-cfg.c (gimple_can_merge_blocks_p): Only protect
latches if after merging they are no longer simple.
* cfghooks.c (merge_blocks): Handle merging a latch block
into another block.

* gcc.dg/tree-ssa/loop-40.c: New testcase.

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