Process all basic blocks for jump threading.

I'd copied the for loop from the dead block removal code, but jump
threading doesn't need to look at the following block...
This commit is contained in:
Bill Currie 2012-05-04 14:10:30 +09:00
parent f169a7732d
commit 33bfac0508

View file

@ -1099,7 +1099,7 @@ thread_jumps (sblock_t *blocks)
if (!blocks)
return;
for (sblock = blocks; sblock->next; sblock = sblock->next) {
for (sblock = blocks; sblock; sblock = sblock->next) {
statement_t *s;
ex_label_t **label, *l;