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: Inline functions called once III


Jan Hubicka <jh at suse dot cz> writes:

> -finline-functions-called-once almost always reduces code size, so it is
> applicable for -Os and perhaps for -O2 too.  It also may be performance
> loss in the case programer took care to put cold stuff into spearate
> function, so I tought it may justify special flag.

We could probably address the performance loss by additional
branch probability heuristics: if there is a function called once, and
its call site is in a block that is conditionally executed, give that
block a low probability so it is moved out-of-line.

zw


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