Yuri
2011-Feb-20 02:12 UTC
[LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
I got these warnings: clang: warning: argument unused during compilation: '-finline-limit=50' clang: warning: argument unused during compilation: '--param max-inline-insns-single=50' clang: warning: argument unused during compilation: '--param max-inline-insns-auto=12' clang: warning: argument unused during compilation: '--param large-function-insns=300' clang: warning: argument unused during compilation: '--param large-function-growth=20' clang: warning: argument unused during compilation: '--param inline-unit-growth=100' These options work with gcc and not with clang. What are the clang equivalents? Yuri
Chris Lattner
2011-Feb-20 02:29 UTC
[LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
On Feb 19, 2011, at 6:12 PM, Yuri wrote:> I got these warnings: > clang: warning: argument unused during compilation: '-finline-limit=50' > clang: warning: argument unused during compilation: '--param > max-inline-insns-single=50' > clang: warning: argument unused during compilation: '--param > max-inline-insns-auto=12' > clang: warning: argument unused during compilation: '--param > large-function-insns=300' > clang: warning: argument unused during compilation: '--param > large-function-growth=20' > clang: warning: argument unused during compilation: '--param > inline-unit-growth=100' > > These options work with gcc and not with clang. > What are the clang equivalents?Clang doesn't expose any equivalent. -Chris
Yuri
2011-Feb-20 02:40 UTC
[LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
On 02/19/2011 18:29, Chris Lattner wrote:> Clang doesn't expose any equivalentWhy 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
Apparently Analagous Threads
- [LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
- [LLVMdev] What are the equivalents of gcc inline control options like max-inline-insns-single in clang?
- [LLVMdev] Need help on SPEC 95 "standard" commandlines
- [LLVMdev] Need help on SPEC 95 "standard" commandlines
- [LLVMdev] Need help on SPEC 95 "standard" commandlines