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] tree-cfg.c: Speed up thread_jumps() - Part 1


Hello,

> > Attached is a patch to speed up thread_jumps().
> > 
> > Now we have no unreachable block before and after calling
> > thread_jumps().  Even within thread_jumps(), unreachable blocks are
> > removed as they arise.
> > 
> > So basically
> > 
> >   /* Don't waste time on unreachable blocks.  */
> >   if (EDGE_COUNT (bb->preds) == 0)
> >     continue;
> > 
> > does not trigger except for ENTRY_BLOCK_PTR.  We don't want to perform
> > jump threading on ENTRY_BLOCK_PTR anyway,

it is not really important, but I do not see a reason why we should not
perform jump threading on ENTRY_BLOCK_PTR.

Zdenek


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