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]
Other format: [Raw text]

Re: [PATCH] Remove verify_no_unreachable_blocks


On Thu, 23 Aug 2018, Steven Bosscher wrote:

> On Thu, Aug 23, 2018 at 1:18 PM Richard Biener <> wrote:
> > -/* Verify that there are no unreachable blocks in the current function.  */
> > -
> > -void
> > -verify_no_unreachable_blocks (void)
> > -{
> > -  find_unreachable_blocks ();
> > -
> > -  basic_block bb;
> > -  FOR_EACH_BB_FN (bb, cfun)
> > -    gcc_assert ((bb->flags & BB_REACHABLE) != 0);
> 
> Alternatively, just clear BB_REACHABLE here?

That doesn't help me of course since I need BB_REACHABLE to be
preserved ;)

>   FOR_EACH_BB_FN (bb, cfun)
>     {
>       gcc_assert ((bb->flags & BB_REACHABLE) != 0);
>       bb->flags &= ~BB_REACHABLE;
>     }
> 
> The function is quite useful for debugging, I wouldn't remove it.

I certainly can keep it (unused).

Richard.


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