This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] tree-cfg.c: Speed up thread_jumps() - Part 1
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Jeffrey A Law <law at redhat dot com>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Oct 2004 22:08:58 +0200
- Subject: Re: [patch] tree-cfg.c: Speed up thread_jumps() - Part 1
- References: <1097000593.22266.226.camel@localhost.localdomain>
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