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() ...@@ -209,7 +209,7 @@ StaticCompiler::StaticCompiler()
auto& CGO = m_compiler->getInvocation().getCodeGenOpts(); auto& CGO = m_compiler->getInvocation().getCodeGenOpts();
CGO.OptimizationLevel = 3; CGO.OptimizationLevel = 3;
CGO.RelocationModel = "static"; CGO.RelocationModel = "static";
CGO.CodeModel = "medium"; // CGO.CodeModel = "medium";
CGO.ThreadModel = "posix"; CGO.ThreadModel = "posix";
CGO.FloatABI = "hard"; CGO.FloatABI = "hard";
CGO.OmitLeafFramePointer = 1; CGO.OmitLeafFramePointer = 1;
......
...@@ -42,7 +42,7 @@ bool codegen::ExecutionEngine::add_module(std::unique_ptr<llvm::Module>& module) ...@@ -42,7 +42,7 @@ bool codegen::ExecutionEngine::add_module(std::unique_ptr<llvm::Module>& module)
.setEngineKind(llvm::EngineKind::JIT) .setEngineKind(llvm::EngineKind::JIT)
.setOptLevel(llvm::CodeGenOpt::Aggressive) .setOptLevel(llvm::CodeGenOpt::Aggressive)
.setMCPU(llvm::sys::getHostCPUName()) .setMCPU(llvm::sys::getHostCPUName())
.setCodeModel(llvm::CodeModel::Medium) // .setCodeModel(llvm::CodeModel::Medium)
.setErrorStr(&m_jit_error) .setErrorStr(&m_jit_error)
.create()); .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