From fb2cf0dd609238931b0fc53ef0ea2172a99307ae Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 6 Mar 2021 14:09:54 -0800 Subject: [PATCH] [FunctionImport] Delete unneeded setLive. NFC ValueInfo's in Worklist are guaranteed to be live. --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 988f94a..5337315 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -914,7 +914,6 @@ void llvm::computeDeadSymbols( while (!Worklist.empty()) { auto VI = Worklist.pop_back_val(); for (auto &Summary : VI.getSummaryList()) { - Summary->setLive(true); if (auto *AS = dyn_cast(Summary.get())) { // If this is an alias, visit the aliasee VI to ensure that all copies // are marked live and it is added to the worklist for further -- 2.7.4