<div dir="ltr">Thanks for the cleanup!<div>Teresa</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 15, 2016 at 10:47 PM, Mehdi Amini via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: mehdi_amini<br>
Date: Tue Aug 16 00:47:12 2016<br>
New Revision: 278777<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=278777&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=278777&view=rev</a><br>
Log:<br>
FunctionImport: rename ImportsForModule to ImportList for consistency (NFC)<br>
<br>
Modified:<br>
    llvm/trunk/lib/Transforms/IPO/<wbr>FunctionImport.cpp<br>
<br>
Modified: llvm/trunk/lib/Transforms/IPO/<wbr>FunctionImport.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=278777&r1=278776&r2=278777&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/<wbr>Transforms/IPO/FunctionImport.<wbr>cpp?rev=278777&r1=278776&r2=<wbr>278777&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Transforms/IPO/<wbr>FunctionImport.cpp (original)<br>
+++ llvm/trunk/lib/Transforms/IPO/<wbr>FunctionImport.cpp Tue Aug 16 00:47:12 2016<br>
@@ -270,7 +270,7 @@ static void computeImportForFunction(<br>
     const FunctionSummary &Summary, const ModuleSummaryIndex &Index,<br>
     unsigned Threshold, const GVSummaryMapTy &DefinedGVSummaries,<br>
     SmallVectorImpl<EdgeInfo> &Worklist,<br>
-    FunctionImporter::ImportMapTy &ImportsForModule,<br>
+    FunctionImporter::ImportMapTy &ImportList,<br>
     StringMap<FunctionImporter::<wbr>ExportSetTy> *ExportLists = nullptr) {<br>
   for (auto &Edge : Summary.calls()) {<br>
     auto GUID = Edge.first.getGUID();<br>
@@ -301,7 +301,7 @@ static void computeImportForFunction(<br>
            "selectCallee() didn't honor the threshold");<br>
<br>
     auto ExportModulePath = ResolvedCalleeSummary-><wbr>modulePath();<br>
-    auto &ProcessedThreshold = ImportsForModule[<wbr>ExportModulePath][GUID];<br>
+    auto &ProcessedThreshold = ImportList[ExportModulePath][<wbr>GUID];<br>
     /// Since the traversal of the call graph is DFS, we can revisit a function<br>
     /// a second time with a higher threshold. In this case, it is added back to<br>
     /// the worklist with the new threshold.<br>
@@ -339,7 +339,7 @@ static void computeImportForFunction(<br>
 /// another module (that may require promotion).<br>
 static void ComputeImportForModule(<br>
     const GVSummaryMapTy &DefinedGVSummaries, const ModuleSummaryIndex &Index,<br>
-    FunctionImporter::ImportMapTy &ImportsForModule,<br>
+    FunctionImporter::ImportMapTy &ImportList,<br>
     StringMap<FunctionImporter::<wbr>ExportSetTy> *ExportLists = nullptr) {<br>
   // Worklist contains the list of function imported in this module, for which<br>
   // we will analyse the callees and may import further down the callgraph.<br>
@@ -357,7 +357,7 @@ static void ComputeImportForModule(<br>
       continue;<br>
     DEBUG(dbgs() << "Initalize import for " << GVSummary.first << "\n");<br>
     computeImportForFunction(*<wbr>FuncSummary, Index, ImportInstrLimit,<br>
-                             DefinedGVSummaries, Worklist, ImportsForModule,<br>
+                             DefinedGVSummaries, Worklist, ImportList,<br>
                              ExportLists);<br>
   }<br>
<br>
@@ -371,7 +371,7 @@ static void ComputeImportForModule(<br>
     Threshold = Threshold * ImportInstrFactor;<br>
<br>
     computeImportForFunction(*<wbr>Summary, Index, Threshold, DefinedGVSummaries,<br>
-                             Worklist, ImportsForModule, ExportLists);<br>
+                             Worklist, ImportList, ExportLists);<br>
   }<br>
 }<br>
<br>
@@ -385,10 +385,10 @@ void llvm::<wbr>ComputeCrossModuleImport(<br>
     StringMap<FunctionImporter::<wbr>ExportSetTy> &ExportLists) {<br>
   // For each module that has function defined, compute the import/export lists.<br>
   for (auto &DefinedGVSummaries : ModuleToDefinedGVSummaries) {<br>
-    auto &ImportsForModule = ImportLists[<wbr>DefinedGVSummaries.first()];<br>
+    auto &ImportList = ImportLists[<wbr>DefinedGVSummaries.first()];<br>
     DEBUG(dbgs() << "Computing import for Module '"<br>
                  << DefinedGVSummaries.first() << "'\n");<br>
-    ComputeImportForModule(<wbr>DefinedGVSummaries.second, Index, ImportsForModule,<br>
+    ComputeImportForModule(<wbr>DefinedGVSummaries.second, Index, ImportList,<br>
                            &ExportLists);<br>
   }<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 408-460-2413</td></tr></tbody></table></span></div>
</div>