From f9a2a9f063a07d40381c2e4f453a98bd3d5a4997 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 22 Aug 2016 18:33:47 -0400 Subject: [PATCH] precompile: major LLVM speed improvement fix #15048 --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index a15626019119c9..f254debf138f88 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5830,7 +5830,7 @@ extern "C" void jl_init_codegen(void) #ifdef DISABLE_OPT .setOptLevel(CodeGenOpt::None) #else - .setOptLevel(CodeGenOpt::Aggressive) + .setOptLevel(jl_options.opt_level == 0 ? CodeGenOpt::None : CodeGenOpt::Aggressive) #endif #if defined(USE_MCJIT) && !defined(LLVM36) .setUseMCJIT(true)