[llvm] r289466 - [ThinLTO] Remove useless code (NFC)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 12:34:28 PST 2016
Author: tejohnson
Date: Mon Dec 12 14:34:28 2016
New Revision: 289466
URL: http://llvm.org/viewvc/llvm-project?rev=289466&view=rev
Log:
[ThinLTO] Remove useless code (NFC)
Should have been removed in r288446.
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=289466&r1=289465&r2=289466&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Mon Dec 12 14:34:28 2016
@@ -264,10 +264,6 @@ static void exportGlobalInModule(const M
return;
// We found it in the current module, mark as exported
ExportList.insert(GUID);
-
- auto GVS = dyn_cast<GlobalVarSummary>(Summary);
- if (!GVS)
- return;
}
using EdgeInfo = std::pair<const FunctionSummary *, unsigned /* Threshold */>;
More information about the llvm-commits
mailing list