JIT: remove dump 86/17386/2
Calixte DENIZET [Fri, 23 Oct 2015 14:44:44 +0000 (16:44 +0200)]
Change-Id: I926ee11095c5babc41f9063f79a08c9d2834243e

scilab/modules/ast/src/cpp/jit/JITBinOpCall.cpp
scilab/modules/ast/src/cpp/jit/JITVisitor.cpp
scilab/modules/ast/src/cpp/jit/Jitter.cpp

index 79f547c..fd64290 100644 (file)
@@ -28,7 +28,6 @@ bool JITBinOpCall::invoke(const ast::Exp & e, const std::vector<analysis::TIType
     const analysis::TIType & Rtype = oe.getRight().getDecorator().getResult().getType();
 
     oe.getLeft().accept(jit);
-    jit.getFunction().dump();
     JITScilabPtr L = jit.getResult();
     oe.getRight().accept(jit);
     JITScilabPtr & R = jit.getResult();
index 0b8fc79..31ae565 100644 (file)
@@ -106,9 +106,9 @@ void JITVisitor::compile()
 {
     if (function)
     {
-        dump();
+        //dump();
         runOptimizationPasses();
-        dump();
+        //dump();
 #if TIME_LLVM == 1
         std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now();
 #endif
@@ -913,7 +913,7 @@ void JITVisitor::initPassManagers()
     FPM.add(llvm::createTargetTransformInfoWrapperPass(target->getTargetIRAnalysis()));
 
     llvm::PassManagerBuilder PMB;
-    PMB.OptLevel = 2;
+    PMB.OptLevel = 3;
     PMB.SizeLevel = 0;
     PMB.BBVectorize = true;
     PMB.LoopVectorize = true;
index 84d3acb..8060b17 100644 (file)
@@ -37,33 +37,33 @@ bool Jitter::analyzeAndJIT(const ast::CallExp & ce, const types::typed_list & in
         {
             //analysis::Chrono::tic();
             ast::CallExp * ce = static_cast<ast::CallExp *>(arg.clone());
-            //analysis::Chrono::toc(L"timer 1");
+            //analysis::Chrono::toc(L"Clone CallExp");
 
             //analysis::Chrono::tic();
             ce->accept(analysis);
-            //analysis::Chrono::toc(L"timer 2");
+            //analysis::Chrono::toc(L"Analysis & code generation");
 
             //analysis::Chrono::tic();
             jit.compile();
-            //analysis::Chrono::toc(L"timer 3");
+            //analysis::Chrono::toc(L"Compile");
 
             if (const uint64_t fid = ce->getDecorator().getResult().getFunctionId())
             {
                 //analysis::Chrono::tic();
                 jit.makeCallFromScilab(fid, in, out);
-                //analysis::Chrono::toc(L"timer 4");
+                //analysis::Chrono::toc(L"Call");
 
                 //analysis::Chrono::tic();
                 delete ce;
-                //analysis::Chrono::toc(L"timer 5");
+                //analysis::Chrono::toc(L"Delete CallExp");
 
                 //analysis::Chrono::tic();
                 jit.reset();
-                //analysis::Chrono::toc(L"timer 6");
+                //analysis::Chrono::toc(L"JIT reset");
 
                 //analysis::Chrono::tic();
                 analysis.reset();
-                //analysis::Chrono::toc(L"timer 7");
+                //analysis::Chrono::toc(L"Analysis reset");
 
                 return true;
             }