)]}'
{
  "commit": "0359b9a2306566a872cede1fcdaa4edc34e9398e",
  "tree": "e4e89732f3d5f06ddaf4df4b4fe68db58532ae37",
  "parents": [
    "6e44cb3ccb822085cd2f35c63daa60395dda26f2"
  ],
  "author": {
    "name": "Kazu Hirata",
    "email": "kazu@google.com",
    "time": "Tue Aug 27 08:39:49 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Aug 27 08:39:49 2024 -0700"
  },
  "message": "[LTO] Introduce a helper function collectImportStatistics (NFC) (#106179)\n\nThis patch introduces a helper function collectImportStatistics.  The\r\nnew function computes statistics of imports for\r\nComputeCrossModuleImport and dumpImportListForModule with no\r\nfunctional change.\r\n\r\nThe background is as follows.  I\u0027m planning to reduce the memory\r\nfootprint of ThinLTO indexing by changing ImportMapTy, the data\r\nstructure used for an import list.  The new list will be a hash set of\r\ntuples (SourceModule, GUID, ImportType) represented in a space\r\nefficient manner.  That means that obtaining statistics like the\r\nnumber of definitions per source module requires us to go through the\r\nentire import list (for a given destination module).\r\n\r\nIntroducing a helper function now makes the callers more independent\r\nof the underlying data structures used in ImportMapT.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd01d143b066b9f8dd6fb41a6e8f23ef914a79e8",
      "old_mode": 33188,
      "old_path": "llvm/lib/Transforms/IPO/FunctionImport.cpp",
      "new_id": "a80e6d3f411ddeffd7191d882c5dcbe9d09f6b44",
      "new_mode": 33188,
      "new_path": "llvm/lib/Transforms/IPO/FunctionImport.cpp"
    }
  ]
}
