Commit 663ac704 authored by Michael Beck's avatar Michael Beck
Browse files

- do not kill the start block when folding control flow

[r20778]
parent 887edd1f
......@@ -1490,7 +1490,9 @@ static ir_node *get_leader(node_t *node) {
* @param pred the control flow exit
*/
static int can_exchange(ir_node *pred) {
if (is_Jmp(pred))
if (is_Start(pred))
return 0;
else if (is_Jmp(pred))
return 1;
else if (get_irn_mode(pred) == mode_T) {
int i, k;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment