This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: split_edge cleanup


On Wed, Jun 27, 2001 at 12:33:57PM +0200, Jan Hubicka wrote:
> + /* Attempt to change code to redirect edge E to destinate in TARGET.

  redirect the destination of edge E to TARGET

> +   if (!(e->flags & EDGE_FALLTHRU))
> +     {
...
> +     }
> +   else
> +     return 0;

Clearer written as

  if (e->flags & EDGE_FALLTHRU)
    return 0;
  ...

>     if ((edge_in->flags & EDGE_FALLTHRU) == 0)
> !     redirect_edge_and_branch (edge_in, bb);

Should abort if redirect_edge_and_branch fails.

Otherwise ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]