)]}'
{
  "commit": "5503db049a45d8940eea4db73de63c7a6f8f640e",
  "tree": "d498a8f9ac7c70ffd3591b6cf9e4e3c132bc7091",
  "parents": [
    "ffd36aa717658cdaa049a8c384daa2534eb25c22"
  ],
  "author": {
    "name": "Stefan Schuermans",
    "email": "schuermans@roofline.ai",
    "time": "Thu Oct 01 11:30:20 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 01 09:30:20 2026 +0000"
  },
  "message": "fix(PackConstants): don\u0027t start new storage buffer if current one is still empty (#23927)\n\nThe PackConstants pass introduces a new buffer when a constant cannot be\npacked into the current buffer without exceeding the maximum size.\nHowever, if a constant is itself larger than the limit, it gets still\nadded, but in a separate buffer.\nThis change fixes a bug in the packing logic when a constant bigger than\nthe limit is encountered when the current buffer is still empty. In this\ncase, the current buffer stayed empty and the big constant got added to\na new buffer. The empty buffer caused errors of size 0 buffers not being\nsupported in following passes or in the runtime. This change avoids\nadding a new buffer is the current one is empty and thus avoids these\nerrors.\n\nSigned-off-by: Stefan Schuermans \u003cschuermans@roofline.ai\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e5a1dc758a93d0c294e7c9f7d2b5412497201c30",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp",
      "new_id": "b17c8b48e94cfd680eb4b94ef89bda7dfdc20c14",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp"
    },
    {
      "type": "modify",
      "old_id": "bb9d9346f7e674c0c1068306795462a8583a1ef4",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir",
      "new_id": "a7002c3becf220596eaed0f6e47c80d96a143133",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir"
    }
  ]
}
