Commit 20d400c3 by Kazu Hirata Committed by Kazu Hirata

tree-cfg.c (thread_jumps): Remove a duplicate check for an infinite loop.

	* tree-cfg.c (thread_jumps): Remove a duplicate check for
	an infinite loop.

From-SVN: r88567
parent 2abacef0
2004-10-05 Kazu Hirata <kazu@cs.umass.edu> 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (thread_jumps): Remove a duplicate check for
an infinite loop.
2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
of FOR_BB_BETWEEN. Remove a useless check for unreachable of FOR_BB_BETWEEN. Remove a useless check for unreachable
blocks. blocks.
......
...@@ -3885,11 +3885,6 @@ thread_jumps (void) ...@@ -3885,11 +3885,6 @@ thread_jumps (void)
last = EDGE_SUCC (dest, 0), last = EDGE_SUCC (dest, 0),
dest = EDGE_SUCC (dest, 0)->dest) 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) if (EDGE_SUCC (dest, 0)->dest == EXIT_BLOCK_PTR)
break; break;
......
Markdown is supported
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