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

Dan Gohman gohman at apple.com
Tue May 11 13:30:00 PDT 2010


Author: djg
Date: Tue May 11 15:30:00 2010
New Revision: 103499

URL: http://llvm.org/viewvc/llvm-project?rev=103499&view=rev
Log:
Revert r103493, materializing functions in the regular PassManager.
It works in simple cases, but it isn't a general solution.

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=103499&r1=103498&r2=103499&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Tue May 11 15:30:00 2010
@@ -1444,16 +1444,8 @@
 bool FPPassManager::runOnModule(Module &M) {
   bool Changed = doInitialization(M);
 
-  for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
-    Function &F = *I;
-    if (F.isMaterializable()) {
-      std::string errstr;
-      if (F.Materialize(&errstr))
-        report_fatal_error("Error reading bitcode file: " + Twine(errstr));
-    }
-
+  for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
     runOnFunction(*I);
-  }
 
   return doFinalization(M) || Changed;
 }





More information about the llvm-commits mailing list