aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-05 04:17:25 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-11-05 04:17:25 +0000
commit988fdc5f28692a0c4ee9f1b5f85f51f19272d63f (patch)
tree81581d507a52fc7ff8bcff320258c399c5ec8558 /tools
parent5d0f76199b4616b28b22013d84a3f5b0e303362e (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index c8a0bf1d58..9093073784 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -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();