Now that the linker supports lazily materialising globals, don't
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 Nov 2011 04:17:25 +0000 (04:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 Nov 2011 04:17:25 +0000 (04:17 +0000)
materialise them in LTO.

I observed a ~0.5-1% speedup for an LTO link of opt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143784 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/LTOCodeGenerator.cpp

index c8a0bf1..9093073 100644 (file)
@@ -90,10 +90,6 @@ LTOCodeGenerator::~LTOCodeGenerator()
 
 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();