This question is related with an evaluation of a research work that uses LLVM as a platform. Does LLVM implement an early inlining strategy? Does this early inlining strategy inlines all functions that are called only once in the program? Thanks, -- Cheers, Nelson / \ / / Jose Nelson Amaral - amaral at cs.ualberta.ca ) / ( Professor / / \ Dept. of Computing Science - University of Alberta ( / ) Edmonton, Alberta, Canada, T6G 2E8 \ O / Phone: (780)492-5411 Fax: (780)492-1071 \ / http://www.cs.ualberta.ca/~amaral `----' -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101022/aece045b/attachment.html>
Hi Nelson,> Does LLVM implement an early inlining strategy? Does this early inlining > strategy inlines all functions that are called only once in the program?like all other LLVM passes you can run the inliner as often as you like, whenever you like. (I'm not sure if there is a convenient way to vary the inlining threshold between different runs of the inliner though). Currently most front-ends (clang, llvm-gcc, opt) only run the inliner once. But perhaps you meant high level inlining in (eg) clang before the AST is lowered to LLVM IR? Ciao, Duncan.
Seemingly Similar Threads
- [LLVMdev] Inlining in LLVM
- [LLVMdev] Reviewer for our Path Profiling Implementation
- [LLVMdev] How can we recruit a reviewer for our path-profiling implementation?
- [LLVMdev] "symbol lookup error" while running a Simple Loop Pass
- [LLVMdev] "symbol lookup error" while running a Simple Loop Pass