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: fix opt/8634


>     can you explain this in greater detail? It is one pass over insns, so it
>     should be linear, no?
> 
> Each pass, yes, but what I meant is suppose you have situation where a
> particular construct causes a call to purge_addressof.  That construct is
> used in some percentage of code.  So the number of occurrences is proportional
> to the number of insns.  That's where the quadratic behavior comes from.

I don't follow here either.  purge_addressof is called via toplev.c
exactly once per function and it does exactly one scan of insns.

Honza


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