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]

Patch ping


Hello,

http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01495.html

> estimate_num_insns is currently used for several things:
> 
> -- on several places (loop unrolling, unswitching, exception
>    handling expansion), to estimate the size of the code
> -- in prefetching, to estimate time necessary to execute the
>    code
> -- in inlining for magic heuristic (that pretends to do the
>    former, but in fact turns out to be closer to the latter)
> 
> Not surprisingly, it cannot work well enough for all these usages
> (in particular, the optimizations that rely on it being the size of
> the code suffer by the unrealistical values returned for calls and
> divisions).  This patch makes it possible to select which of these
> three estimates should be returned (by passing the structure containing
> costs of various constructs to it).

Zdenek


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