[LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
Yuri
yuri at rawbw.com
Sat Feb 19 18:40:04 PST 2011
On 02/19/2011 18:29, Chris Lattner wrote:
> Clang doesn't expose any equivalent
Why not?
Such controls are useful to tune the level of optimization. For example
from my experience forcing more inlining causes code to grow due to
resulting duplication but often such code is also faster. Even though
cache mishits may cause it to slow down too eventually. Speed is vital
for software in many industries.
User should be able to force-flatten the module leaving only interface
functions. On the other hand user may want to lower the inlining level
to speed up compilation.
Yuri
More information about the llvm-dev
mailing list