OSDN Git Service

Revert the change that accidentally went in r314806.
authorDehao Chen <dehao@google.com>
Tue, 3 Oct 2017 15:50:42 +0000 (15:50 +0000)
committerDehao Chen <dehao@google.com>
Tue, 3 Oct 2017 15:50:42 +0000 (15:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314807 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index 55599c9..670a848 100644 (file)
@@ -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