)]}'
{
  "commit": "2a63818722d3f06d39aa421400f2de5a8d202623",
  "tree": "15faa89a402d199ed1aad541b96190f03146e7e5",
  "parents": [
    "230f47ad379f44a98087cc2583b8166fc29ec6e2"
  ],
  "author": {
    "name": "Tobias Fuchs",
    "email": "9053039+devtbi@users.noreply.github.com",
    "time": "Tue Sep 15 14:04:03 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Sep 15 14:04:03 2026 +0200"
  },
  "message": "[Stream] Fix ARC double-dealloca of aliased control-flow results (#24841)\n\nThe ARC pass emitted multiple deallocations for possibly aliasing\nresults pointing to the same buffer, leading to double-deallocation\nand/or deallocation/usage race.\n\nARC assumed that each result of a control-flow op is a distinct buffer,\nunless the values yielded into two results resolve to the same buffer\nthrough their tied-value chain. But a (nested) control-flow op\u0027s result\nis defined by a control-flow op, which is not tied to anything, since it\nmay hold a different yielded value on each path. The analysis then\ntreated both as separate buffers.\n\nThe fix collects the tied-value chain for each path. A yielded value\nthus resolves to the set of allocations it\nmay hold. If there is an overlap, the values may alias.\n\n\nThink the pass might need a closer look/some refactoring at some point -\nthe fix is just patching this up.\n\nCo-Authored-By: Claude\n\n---------\n\nSigned-off-by: Tobias Fuchs \u003cfuchs@roofline.ai\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5f2e850d825f8c7be308759a7ff45f6b699c2520",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/AutomaticReferenceCounting.cpp",
      "new_id": "019933af83558e71bb12722d6496eaad1b2bc0ab",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/AutomaticReferenceCounting.cpp"
    },
    {
      "type": "modify",
      "old_id": "e831e05c6fdba7255396641195b8fb825cbe4d59",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD.bazel",
      "new_id": "77eefab5e4c014347cc815c0fefdfb8d588b2f35",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "48abee94b25f5e1bb17e3ca8cf8f71e50f344aa9",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt",
      "new_id": "52f8467168161996f601b94029d7dc36c0bd6fa6",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "2d09c426ca295dfc2809ac4352e269ce269dda25",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/test/automatic_reference_counting_scf.mlir",
      "new_id": "648b1260a75c21f03fc1d3a8d1b4922f3ec1fd74",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Stream/Transforms/test/automatic_reference_counting_scf.mlir"
    },
    {
      "type": "modify",
      "old_id": "0991c05f1a4a6c341a582185a587680406c50b5c",
      "old_mode": 33188,
      "old_path": "tests/e2e/regression/BUILD.bazel",
      "new_id": "86659f7da888b9600bdeed300ac054f5666aaa51",
      "new_mode": 33188,
      "new_path": "tests/e2e/regression/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "7ca3e615be27e8d0f8a00b8b5394984fe9becef8",
      "old_mode": 33188,
      "old_path": "tests/e2e/regression/CMakeLists.txt",
      "new_id": "5d2dd17913c02ce6c09af0f95499a55156edadcb",
      "new_mode": 33188,
      "new_path": "tests/e2e/regression/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "05d6c4d822582d7d2e4728ae6af40cc06861ee2f",
      "new_mode": 33188,
      "new_path": "tests/e2e/regression/stream_reference_counting_aliased_loop_results.mlir"
    }
  ]
}
