Runtime optimizer


Please, I need more information on the runtime optimizer used in the LLVM JIT.

  • Where can I find it in the LLVM source code?

  • Are those runtime optimizations done on the LLVM representation code or on the machine code?


Hi Sara,

Take a look at LLVMTargetMachine::addPassesToEmitMachineCode() in lib/CodeGen/LLVMTargetMachine.cpp for the old JIT engine or LLVMTargetMachine::addPassesToEmitMC() in the same place for MCJIT.