[FunctionImport] Delete unneeded setLive. NFC
authorFangrui Song <i@maskray.me>
Sat, 6 Mar 2021 22:09:54 +0000 (14:09 -0800)
committerFangrui Song <i@maskray.me>
Sat, 6 Mar 2021 22:09:54 +0000 (14:09 -0800)
ValueInfo's in Worklist are guaranteed to be live.

llvm/lib/Transforms/IPO/FunctionImport.cpp

index 988f94a..5337315 100644 (file)
@@ -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