[llvm-commits] [llvm] r143784 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Peter Collingbourne
peter at pcc.me.uk
Fri Nov 4 21:17:25 PDT 2011
Author: pcc
Date: Fri Nov 4 23:17:25 2011
New Revision: 143784
URL: http://llvm.org/viewvc/llvm-project?rev=143784&view=rev
Log:
Now that the linker supports lazily materialising globals, don't
materialise them in LTO.
I observed a ~0.5-1% speedup for an LTO link of opt.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=143784&r1=143783&r2=143784&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Fri Nov 4 23:17:25 2011
@@ -90,10 +90,6 @@
bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg)
{
-
- if(mod->getLLVVMModule()->MaterializeAllPermanently(&errMsg))
- return true;
-
bool ret = _linker.LinkInModule(mod->getLLVVMModule(), &errMsg);
const std::vector<const char*> &undefs = mod->getAsmUndefinedRefs();
More information about the llvm-commits
mailing list