[LLVMdev] Function inlining and JIT

Eric Christopher echristo at apple.com
Tue Aug 28 16:59:27 PDT 2012


On Aug 28, 2012, at 4:28 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:

> My JIT compiler builds the optimization passes with code directly
> copypasted from `opt'. Indeed, the code is optimized as required, except
> from function inlining. If the LLVM assembler code emitted by my JIT
> compiler is passed through `opt' with -O2 or higher, small functions are
> inlined as expected.
> 
> Is there anything special about function inlining in the JIT?

Nothing comes to mind. You just run normal module passes on the module
before passing it off to the JIT?

-eric



More information about the llvm-dev mailing list