Displaying 1 result from an estimated 1 matches for "llvmaddreassociatepass".
2020 Jun 16
2
Need help on JIT compilation speed
...:
LLVMAddBasicAliasAnalysisPass(comp_ctx->pass_mgr);
LLVMAddPromoteMemoryToRegisterPass(comp_ctx->pass_mgr);
LLVMAddInstructionCombiningPass(comp_ctx->pass_mgr);
LLVMAddJumpThreadingPass(comp_ctx->pass_mgr);
LLVMAddConstantPropagationPass(comp_ctx->pass_mgr);
LLVMAddReassociatePass(comp_ctx->pass_mgr);
LLVMAddGVNPass(comp_ctx->pass_mgr);
LLVMAddCFGSimplificationPass(comp_ctx->pass_mgr);
This is how I apply passes to my single IR module (which actually includes
927 functions)
if (comp_ctx->optimize) {
LLVMInitializeFunctionPassManager(comp_ctx->p...