This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Java segfault in predict.c
Hello.
> Seems like
>
> FOR_ALL_BB (bb)
> if (TEST_BIT (loop->nodes, bb->index))
> break;
> loop->first = bb;
>
> FOR_ALL_BB_REVERSE (bb)
> if (TEST_BIT (loop->nodes, bb->index))
> break;
> loop->last = bb;
>
> actually searches fewer blocks, and is clearer.
I'm committing this for now.
> Again, this seems like a real opportunity to want to rely on
> monotonicly increasing indicies...
Zdenek