[llvm] r290003 - ModuleSummaryAnalysis: Remove some duplicate code. NFCI.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 15:19:02 PST 2016
Author: pcc
Date: Fri Dec 16 17:19:02 2016
New Revision: 290003
URL: http://llvm.org/viewvc/llvm-project?rev=290003&view=rev
Log:
ModuleSummaryAnalysis: Remove some duplicate code. NFCI.
Modified:
llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp?rev=290003&r1=290002&r2=290003&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp Fri Dec 16 17:19:02 2016
@@ -208,11 +208,6 @@ ModuleSummaryIndex llvm::buildModuleSumm
SmallPtrSet<GlobalValue *, 8> Used;
// First collect those in the llvm.used set.
collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ false);
- for (auto *V : Used) {
- if (V->hasLocalLinkage())
- LocalsUsed.insert(V);
- }
- Used.clear();
// Next collect those in the llvm.compiler.used set.
collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ true);
for (auto *V : Used) {
More information about the llvm-commits
mailing list