35acbfcbcb83 — Leonard Ritter 2 months ago
* remove optimizations for modules
2 files changed, 1 insertions(+), 2 deletions(-)

M src/execution.cpp
M src/gen_llvm.cpp
M src/execution.cpp +0 -1
@@ 180,7 180,6 @@ void build_and_run_opt_passes(LLVMModule
 
     passBuilder = LLVMPassManagerBuilderCreate();
     LLVMPassManagerBuilderSetOptLevel(passBuilder, opt_level);
-    //LLVMPassManagerBuilderSetOptLevel(passBuilder, 1);
     LLVMPassManagerBuilderSetSizeLevel(passBuilder, 2);
     if (opt_level == 0) {
         LLVMPassManagerBuilderSetDisableUnrollLoops(passBuilder, true);

          
M src/gen_llvm.cpp +1 -1
@@ 3311,7 3311,7 @@ SCOPES_RESULT(ConstPointerRef) compile(c
     flags |= CF_NoDebugInfo;
 #endif
     if (flags & CF_Module) {
-        flags |= CF_O0;
+        //flags |= CF_O0;
         flags |= CF_Cache;
     }