diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d578219cead..0a29808658c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-05 Kazu Hirata + + * tree-cfg.c (thread_jumps): Remove a duplicate check for + an infinite loop. + 2004-10-05 Kazu Hirata * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 2eff7546f39..5820c61efa9 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3885,11 +3885,6 @@ thread_jumps (void) last = EDGE_SUCC (dest, 0), dest = EDGE_SUCC (dest, 0)->dest) { - /* An infinite loop detected. We redirect the edge anyway, so - that the loop is shrunk into single basic block. */ - if (!bb_ann (dest)->forwardable) - break; - if (EDGE_SUCC (dest, 0)->dest == EXIT_BLOCK_PTR) break;