[llvm-commits] [llvm] r89660 - /llvm/trunk/lib/VMCore/PassManager.cpp

Dan Gohman gohman at apple.com
Mon Nov 23 08:24:19 PST 2009


Author: djg
Date: Mon Nov 23 10:24:18 2009
New Revision: 89660

URL: http://llvm.org/viewvc/llvm-project?rev=89660&view=rev
Log:
Move FunctionPassManagerImpl's dumpArguments and dumpPasses calls
out of its run function and into its doInitialization method, so
that it does the dump once instead of once per function.

Modified:
    llvm/trunk/lib/VMCore/PassManager.cpp

Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=89660&r1=89659&r2=89660&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Mon Nov 23 10:24:18 2009
@@ -1231,6 +1231,9 @@
 bool FunctionPassManagerImpl::doInitialization(Module &M) {
   bool Changed = false;
 
+  dumpArguments();
+  dumpPasses();
+
   for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index)
     Changed |= getContainedManager(Index)->doInitialization(M);
 
@@ -1274,9 +1277,6 @@
   bool Changed = false;
   TimingInfo::createTheTimeInfo();
 
-  dumpArguments();
-  dumpPasses();
-
   initializeAllAnalysisInfo();
   for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index)
     Changed |= getContainedManager(Index)->runOnFunction(F);





More information about the llvm-commits mailing list