[llvm] r314807 - Revert the change that accidentally went in r314806.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 08:50:42 PDT 2017


Author: dehao
Date: Tue Oct  3 08:50:42 2017
New Revision: 314807

URL: http://llvm.org/viewvc/llvm-project?rev=314807&view=rev
Log:
Revert the change that accidentally went in r314806.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=314807&r1=314806&r2=314807&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Tue Oct  3 08:50:42 2017
@@ -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




More information about the llvm-commits mailing list