)]}'
{
  "commit": "2168455ef4cdbec9df3b63900fe9b316154187cf",
  "tree": "1f8edf04ae29a22910b49f2136818b0d7df8913f",
  "parents": [
    "79316f9f518dad7ae9235aeab27cd4ceb4a35985"
  ],
  "author": {
    "name": "Pierre van Houtryve",
    "email": "pierre.vanhoutryve@amd.com",
    "time": "Fri Apr 25 09:36:41 2025 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Apr 25 09:36:41 2025 +0200"
  },
  "message": "[AMDGPU][SplitModule] Do not create empty modules (#135761)\n\nSkip creating a module if no function is going to be imported.\nAlso includes a change so that if the first partition is empty (which\ncan happen),\nwe import global with non-local linkage into the first non-empty\npartition, instead\nof P0 all the time.\n\nI thought we\u0027d need to change users of the SplitModule callback so they\ncan deal with less modules\nthan the number requested, but no. We already return only 1 module in\nsome cases and\nit seems to be handled just fine.\n\nFixes SWDEV-523146",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5a16c9cafcd7aa0c8c20d3df38b2731ab4f90bef",
      "old_mode": 33188,
      "old_path": "llvm/include/llvm/Target/TargetMachine.h",
      "new_id": "566e7dba6792b08803dea88abcd92b76c820824f",
      "new_mode": 33188,
      "new_path": "llvm/include/llvm/Target/TargetMachine.h"
    },
    {
      "type": "modify",
      "old_id": "ed9a4d9888dc4399062b3f8c08a264ffc4c7e1b3",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp",
      "new_id": "9af812960542cacc14de21435d7ba574ca5b0724",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp"
    },
    {
      "type": "modify",
      "old_id": "708b5a006be60e67d1a1a9527e341045708711d0",
      "old_mode": 33188,
      "old_path": "llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize-with-call.ll",
      "new_id": "0f20a73b1928e65d2114b7ddf315d5f16c20a3c0",
      "new_mode": 33188,
      "new_path": "llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize-with-call.ll"
    },
    {
      "type": "modify",
      "old_id": "839688e7feb8bbcb79df4eacdb7159bb99381d2e",
      "old_mode": 33188,
      "old_path": "llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging-weak_odr.ll",
      "new_id": "567275686fb9faa441dd12d4635dc73e871f842f",
      "new_mode": 33188,
      "new_path": "llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging-weak_odr.ll"
    },
    {
      "type": "modify",
      "old_id": "807fb2e5f33cea3d63770d0e0e236ecdd1937778",
      "old_mode": 33188,
      "old_path": "llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging.ll",
      "new_id": "35133d20c4e078f15554c1f1e1698f8ab6b057f4",
      "new_mode": 33188,
      "new_path": "llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging.ll"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "091010edd6be3c184ac7929fb201ed8206c9d302",
      "new_mode": 33188,
      "new_path": "llvm/test/tools/llvm-split/AMDGPU/preserve-globals.ll"
    }
  ]
}
