Unverified Commit 04985466 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

set code model back to default as medium is causing the CPU.divide_by_zero_int32…

set code model back to default as medium is causing the CPU.divide_by_zero_int32 unit test to sefault when it throws an exception from the generated code (#328)
parent d02d0c99
......@@ -209,7 +209,7 @@ StaticCompiler::StaticCompiler()
auto& CGO = m_compiler->getInvocation().getCodeGenOpts();
CGO.OptimizationLevel = 3;
CGO.RelocationModel = "static";
CGO.CodeModel = "medium";
// CGO.CodeModel = "medium";
CGO.ThreadModel = "posix";
CGO.FloatABI = "hard";
CGO.OmitLeafFramePointer = 1;
......
......@@ -42,7 +42,7 @@ bool codegen::ExecutionEngine::add_module(std::unique_ptr<llvm::Module>& module)
.setEngineKind(llvm::EngineKind::JIT)
.setOptLevel(llvm::CodeGenOpt::Aggressive)
.setMCPU(llvm::sys::getHostCPUName())
.setCodeModel(llvm::CodeModel::Medium)
// .setCodeModel(llvm::CodeModel::Medium)
.setErrorStr(&m_jit_error)
.create());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment