)]}'
{
  "commit": "4d8e42ae3b0614e8cfde478e5fa17cb32d87903d",
  "tree": "6df4e98240739704034d13b929c4d4b5962defaf",
  "parents": [
    "8711763c02fdfb5a10ce58f2714802a567fa8fba"
  ],
  "author": {
    "name": "Federico Bruzzone",
    "email": "federico.bruzzone.i@gmail.com",
    "time": "Tue Nov 17 11:47:53 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 17 10:47:53 2026 +0000"
  },
  "message": "[VM] Fail to compile functions that exceed the block limit of the bytecode format (#25244)\n\nThe bytecode encoder does not check the limits that the runtime enforces\nwhen it loads a module. `iree-compile` exits with 0 and writes a `.vmfb`\nthat then fails to load:\n\n- `block_count` is an `int16` in the function descriptor. A function\nwith more than 32767 blocks fails in `block_list.c`.\n- The runtime verifier rounds the i32 and ref register counts up to a\npower of two and compares them with the ISA maximum. A function over the\nlimit fails with `register count overflow`.\n\nThe encoder now reports an error with the count and the limit.\n\nThis does not make these modules loadable, it only moves the failure to\ncompile time. For example, `smollm2` compiled with runtime verification\nfrom MLIR has 34406 blocks in one function and now fails with `function\nhas 34406 blocks; VM currently restricts functions to 32767 blocks`.\n\nRelated to #18923, which has the same runtime error for another model.\n\nAI-assisted.\n\n---------\n\nSigned-off-by: Federico Bruzzone \u003cfederico.bruzzone.i@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7c9ba7d85005005b0909df70118081f625218caa",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp",
      "new_id": "6a39e4d12e37b4ccf2ea1c3cb6c54399354236f2",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp"
    }
  ]
}
