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: [tree-ssa] More aggressive dead code elimination


On Thursday 08 January 2004 00:05, law@redhat.com wrote:
> In message <200401072356.14021.s.bosscher@student.tudelft.nl>, Steven
> Bosscher
>
> writes:
>  >>   2. If the last DCE pass kills a conditional it does not arrange to
>  >>      kill the statements which feed the conditional.  This can be
>  >>      easily solved by re-running the DCE pass in that case.  These are
>  >>      extremely rare.
>  >
>  >Running the existing DCE twice is just as expensive as running the more
>  >aggressive version just once, so this argument doesn't make sense to me.
>
> Err, not for big functions.  And remember the cases where we would need
> to do this are extremely rare.

Well perhaps I'm a complete moron, but I don't see what function size has to 
do with it.  Both algorithms are linear in the number of statements.

Gr.
Steven


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