This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patches] flow based jump pass take 2
On Thu, Jun 28, 2001 at 11:53:54AM +0200, Jan Hubicka wrote:
> + static bool
> + forwarder_block_p (bb)
> + basic_block bb;
> + {
> + rtx insn;
> + if (bb == EXIT_BLOCK_PTR || bb == ENTRY_BLOCK_PTR
> + || !bb->succ || bb->succ->succ_next)
> + return 0;
Fix up the returns and assignments to bool to use true and false.
> ! /* Bypass trivial infinite loops. */
> ! if (target == target->succ->dest)
> ! counter = n_basic_blocks;
> ! target = target->succ->dest, counter++;
counter is now n_basic_blocks+1 for infinite loops, which misses
> ! else if (rtl_dump_file && counter == n_basic_blocks)
> ! fprintf (rtl_dump_file, "Infinite loop in BB %i.\n", target->index);
here.
Otherwise ok.
r~