re PR tree-optimization/63168 (loop header copying fails - not vectorized: latch...
authorRichard Biener <rguenther@suse.de>
Thu, 16 Oct 2014 10:13:52 +0000 (10:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Oct 2014 10:13:52 +0000 (10:13 +0000)
commit93a95abe925edc98131056a6b716e7a9e15f72cc
tree20fc664da392c7860ee5505c631575ae25f7fc13
parent0c49f2ed839ba727b236e97e5be03239fd81256c
re PR tree-optimization/63168 (loop header copying fails - not vectorized: latch block not empty)

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.

From-SVN: r216304
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