)]}'
{
  "commit": "02ca50e56063e3730731c75e40e1b6048a6de9f1",
  "tree": "f8f525ee1bf2e99362cb69aa6971d0acbd13bef3",
  "parents": [
    "c8fc766aaae3210f0b19704cbdfad23ea5bf2826"
  ],
  "author": {
    "name": "Jin Huang",
    "email": "jinhuang1102@gmail.com",
    "time": "Thu Dec 04 15:45:44 2025 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Dec 04 15:45:44 2025 -0800"
  },
  "message": "[profcheck] Fix missing profile metadata in ExpandMemCmp (#169979)\n\nThis patch fixes a profile metadata missing in the `ExpandMemCmp` pass\nwhen it expanding `memcmp` calls. This would cause branches between\ndifferent blocks to lose their profile data, potentially leading to\nsuboptimal code generation.\n\nThe patch updates the `ExpandMemCmp` pass to set branch weights to a\ndefault `unknown`(50/50 weights) value when a profile is available. This\nprevents the expansion from making a previously profiled branch\nunprofiled.\n\nThe patch also includes updates to the tests to reflect the new branch\nweights.\n\nCo-authored-by: Jin Huang \u003cjingold@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "74f93e1979532767cfe88581de58b8c531434f9d",
      "old_mode": 33188,
      "old_path": "llvm/lib/CodeGen/ExpandMemCmp.cpp",
      "new_id": "1cccd2f66395c261f6f37bcb9f7c56b75652d3eb",
      "new_mode": 33188,
      "new_path": "llvm/lib/CodeGen/ExpandMemCmp.cpp"
    },
    {
      "type": "modify",
      "old_id": "7df48d878bd0bff3e993025c58e28e3db980163c",
      "old_mode": 33188,
      "old_path": "llvm/test/Transforms/ExpandMemCmp/AArch64/memcmp.ll",
      "new_id": "0ed3af535ac9c63160728aed2164c53d5b17e854",
      "new_mode": 33188,
      "new_path": "llvm/test/Transforms/ExpandMemCmp/AArch64/memcmp.ll"
    },
    {
      "type": "modify",
      "old_id": "0507ec9de542ed7ebf9708de95e01dc76e8b9d59",
      "old_mode": 33188,
      "old_path": "llvm/test/Transforms/ExpandMemCmp/X86/memcmp-x32.ll",
      "new_id": "30da8b391f55d7ba432c580f864c10f4ff05a0ed",
      "new_mode": 33188,
      "new_path": "llvm/test/Transforms/ExpandMemCmp/X86/memcmp-x32.ll"
    },
    {
      "type": "modify",
      "old_id": "86dc3e5245f241919208f7f7c058f263472d72e7",
      "old_mode": 33188,
      "old_path": "llvm/test/Transforms/ExpandMemCmp/X86/memcmp.ll",
      "new_id": "b5075a2fcff0b2a3fd47a6f225277faa4098b73b",
      "new_mode": 33188,
      "new_path": "llvm/test/Transforms/ExpandMemCmp/X86/memcmp.ll"
    },
    {
      "type": "modify",
      "old_id": "3cde50de7d0c13f7ae7253729b6c60504043ca94",
      "old_mode": 33188,
      "old_path": "llvm/utils/profcheck-xfail.txt",
      "new_id": "2df5930fe459c9eccd8b24c71d76b306a188b62e",
      "new_mode": 33188,
      "new_path": "llvm/utils/profcheck-xfail.txt"
    }
  ]
}
