[llvm] fb2cf0d - [FunctionImport] Delete unneeded setLive. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 6 14:09:58 PST 2021
Author: Fangrui Song
Date: 2021-03-06T14:09:54-08:00
New Revision: fb2cf0dd609238931b0fc53ef0ea2172a99307ae
URL: https://github.com/llvm/llvm-project/commit/fb2cf0dd609238931b0fc53ef0ea2172a99307ae
DIFF: https://github.com/llvm/llvm-project/commit/fb2cf0dd609238931b0fc53ef0ea2172a99307ae.diff
LOG: [FunctionImport] Delete unneeded setLive. NFC
ValueInfo's in Worklist are guaranteed to be live.
Added:
Modified:
llvm/lib/Transforms/IPO/FunctionImport.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 988f94a9ec46..53373156f40f 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<AliasSummary>(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
More information about the llvm-commits
mailing list