From 8884d9d2f056c91cc434534d71055345f484fc5b 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 (cherry picked from commit 95428baeffc53c14a73634510a334c230d1ddaa8) ref #18191 --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index fa6e0904c45c4..879092d49d6e1 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5809,7 +5809,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)