re PR tree-optimization/57122 (ICE in verify_loop_structure, at cfgloop.c:1647 (loop...
commit3551257c5d24d5193edbdbc4604c1d995d50902b
authorRichard Biener <rguenther@suse.de>
Tue, 30 Apr 2013 15:03:58 +0000 (30 15:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Apr 2013 15:03:58 +0000 (30 15:03 +0000)
treeecfd28b26879586b3406ed9bd53c63c9752a365e
parent4c1aff1ce430fdf4b46caa632fd44b4d0f557720
re PR tree-optimization/57122 (ICE in verify_loop_structure, at cfgloop.c:1647 (loop n’s latch does not have an edge to its header !))

2013-04-30  Richard Biener  <rguenther@suse.de>

PR middle-end/57122
* cfghooks.c (split_edge): Properly check for the loop
latch edge.

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

From-SVN: r198456
gcc/ChangeLog
gcc/cfghooks.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr57122.c [new file with mode: 0644]