From 32d7f21fff46acd866fb3343c8d85daee2b037f4 Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Tue, 3 Oct 2017 15:50:42 +0000 Subject: [PATCH] Revert the change that accidentally went in r314806. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314807 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/FunctionImport.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index 55599c9149d..670a84862e0 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/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 -- 2.11.0