summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionImport.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-10-03 15:50:42 +0000
committerDehao Chen <dehao@google.com>2017-10-03 15:50:42 +0000
commitea523ddb1b14ee8d008859bd6878474827315b5a (patch)
tree946204ed22c76e32de98747177fdb7aaba5ee6c6 /llvm/lib/Transforms/IPO/FunctionImport.cpp
parent1d5422f27f602e231d68d70dc8c9a2419c85d269 (diff)
downloadbcm5719-llvm-ea523ddb1b14ee8d008859bd6878474827315b5a.tar.gz
bcm5719-llvm-ea523ddb1b14ee8d008859bd6878474827315b5a.zip
Revert the change that accidentally went in r314806.
llvm-svn: 314807
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 55599c9149d..670a84862e0 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -463,10 +463,6 @@ void llvm::computeDeadSymbols(
// Make value live and add it to the worklist if it was not live before.
// FIXME: we should only make the prevailing copy live here
auto visit = [&](ValueInfo VI) {
- for (auto &S : VI.getSummaryList())
- S->setLive(true);
- ++LiveSymbols;
- Worklist.push_back(VI);
// FIXME: If we knew which edges were created for indirect call profiles,
// we could skip them here. Any that are live should be reached via
// other edges, e.g. reference edges. Otherwise, using a profile collected
OpenPOWER on IntegriCloud