)]}'
{
  "commit": "31ac291c91a4186df63eaf97456026a5acaa3711",
  "tree": "28b035535168a7e8e2bbe2d02f185afdf21dbb54",
  "parents": [
    "0b2e7d1c71f826336b8ae04c717e6dc5ddb16f88"
  ],
  "author": {
    "name": "Anutosh Bhat",
    "email": "andersonbhat491@gmail.com",
    "time": "Mon Nov 16 13:00:05 2026 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 16 08:30:05 2026 +0100"
  },
  "message": "[LinalgExt] Keep TopK values paired with their indices (#25282)\n\nI hit this while checking the Torch TopK lowering. Both `topk` and\n`topk_v2` apply tie-breaking when selecting indices, but select values\nusing only the original comparator. This can return a value paired with\nanother input’s index.\n\nFor `[+0, -0, +0, 1, -100, -101]`, selecting the top three with the\nfirst three elements as the initial candidates returns:\n\n```text\nvalues:  [1, -0, +0]\nindices: [3,  0,  1]\n```\n\nThose indices refer to `[1, +0, -0]`, so the values and indices are\ninconsistent.\n\nThis uses the same final selection decision for values and indices in\nboth operations.\n\nSigned-off-by: anutosh491 \u003candersonbhat491@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "31697f9cc11ba6941f44b23b0806214e76fc6181",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/LinalgExt/IR/TilingInterfaceImpl.cpp",
      "new_id": "b9aaf89fbfb964f6077671f678610629d01b8472",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/LinalgExt/IR/TilingInterfaceImpl.cpp"
    },
    {
      "type": "modify",
      "old_id": "36ae73ebccda3a0bbc7948fe4dcaa8ca12e3f662",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/test/convert_to_loops.mlir",
      "new_id": "c652f0666b83b982d7a51138c2b90f91deac6b82",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/test/convert_to_loops.mlir"
    },
    {
      "type": "modify",
      "old_id": "2457c41bab8d0f2d3f3622caab42e0b2a4189f5c",
      "old_mode": 33188,
      "old_path": "tests/e2e/linalg_ext_ops/top-k.mlir",
      "new_id": "29f3e14532a83303405e4a099aa2322c74db36f1",
      "new_mode": 33188,
      "new_path": "tests/e2e/linalg_ext_ops/top-k.mlir"
    },
    {
      "type": "modify",
      "old_id": "350880a255f1595f9dd2ea67c966cf1238438266",
      "old_mode": 33188,
      "old_path": "tests/e2e/linalg_ext_ops/topk_v2.mlir",
      "new_id": "b2483ef50c1032b31e8d566b87814a66fd9e90ee",
      "new_mode": 33188,
      "new_path": "tests/e2e/linalg_ext_ops/topk_v2.mlir"
    }
  ]
}
