PR tree-optimization/20773
* tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
edge.
From-SVN: r102425
+2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR tree-optimization/20773
+ * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
+ edge.
+
2005-07-27 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (push_fields_onto_fieldstack):
/* Ensure that the header will have just the latch as a predecessor
inside the loop. */
if (!single_pred_p (exit->dest))
- exit = single_succ_edge (loop_split_edge_with (exit, NULL));
+ exit = single_pred_edge (loop_split_edge_with (exit, NULL));
entry = loop_preheader_edge (loop);