This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] always inline alloc_perturb.


From: Ondřej Bílka <neleai@seznam.cz>
Date: Fri, 12 Dec 2014 12:18:56 +0100

> Compiler uses simple heuristics for inlining, not magic. It pretty often
> refuses to inline functions that after inlining he could say delete half
> code as dead. Reason why it should be inlined is simple, unlikely branch
> is much cheaper than function call.

This only tells me that the compiler should become more sophisticated
over time, not that we should forver assume it can't do a good job.

If we continue to hand inline things, there is zero incentive to
make the compiler smarter about it.


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