[vmkit-commits] [vmkit] r76468 - /vmkit/trunk/lib/Mvm/Compiler/JIT.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Jul 20 13:54:58 PDT 2009


Author: geoffray
Date: Mon Jul 20 15:54:45 2009
New Revision: 76468

URL: http://llvm.org/viewvc/llvm-project?rev=76468&view=rev
Log:
Do the initialization of passes when runnnin them.


Modified:
    vmkit/trunk/lib/Mvm/Compiler/JIT.cpp

Modified: vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/JIT.cpp?rev=76468&r1=76467&r2=76468&view=diff

==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/JIT.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/JIT.cpp Mon Jul 20 15:54:45 2009
@@ -231,6 +231,7 @@
 
 void MvmModule::runPasses(llvm::Function* func,
                           llvm::FunctionPassManager* pm) {
+  pm->doInitialization();
   pm->run(*func);
 }
 
@@ -288,7 +289,6 @@
   addPass(PM, createAggressiveDCEPass());        // Delete dead instructions
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   
-  PM->doInitialization();
 }
 
 // We protect the creation of IR with the executionEngine lock because





More information about the vmkit-commits mailing list