cleanup
authorEgorBo <egorbo@gmail.com>
Wed, 21 Aug 2019 11:34:00 +0000 (14:34 +0300)
committerEgorBo <egorbo@gmail.com>
Wed, 21 Aug 2019 11:34:00 +0000 (14:34 +0300)
Commit migrated from https://github.com/mono/mono/commit/26d73b94f68d10cbb29cce633dc6240d3c703ed3

src/mono/mono/mini/llvm-jit.cpp

index ce289cc..7d5da04 100644 (file)
@@ -385,11 +385,7 @@ mono_llvm_create_ee (LLVMModuleProviderRef MP, AllocCodeMemoryCb *alloc_cb, Func
        EnableMonoEH = true;
        MonoEHFrameSymbol = "mono_eh_frame";
 
-       EngineBuilder EB;
        TargetOptions opts;
-       EB.setOptLevel(CodeGenOpt::Aggressive);
-       EB.setMCPU(sys::getHostCPUName());
-
        if (mono_use_fast_math) {
                opts.NoInfsFPMath = true;
                opts.NoNaNsFPMath = true;
@@ -399,6 +395,9 @@ mono_llvm_create_ee (LLVMModuleProviderRef MP, AllocCodeMemoryCb *alloc_cb, Func
                opts.AllowFPOpFusion = FPOpFusion::Fast;
        }
 
+       EngineBuilder EB;
+       EB.setOptLevel(CodeGenOpt::Aggressive);
+       EB.setMCPU(sys::getHostCPUName());
        EB.setTargetOptions (opts);
        auto TM = EB.selectTarget ();
        assert (TM);