)]}'
{
  "commit": "f2ee438f26fdd4f71081e92055f51a4fefcac472",
  "tree": "c126c8e1a730e2864f5f13cc42a607d355c6afd0",
  "parents": [
    "020781198d5c99cbae312023ed4e005482e3ff74"
  ],
  "author": {
    "name": "Demetrios Chiuratto Agourakis",
    "email": "demetrios@agourakis.med.br",
    "time": "Tue Nov 03 06:14:10 2026 -0300"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 03 09:14:10 2026 +0000"
  },
  "message": "[GPU] Fix integer reduction identities at the element bit width (#25176)\n\nThe reduction helper builds integer min/max identities from fixed\n`int64_t` limits and uses `1` for AND. Those values can change meaning\nwhen converted to a narrower type. The shared signed/unsigned cases also\ngive the wrong identities for unsigned `i64` reductions.\n\nThis patch builds the identities with `APInt` at the element\u0027s bit width\nand gives signed and unsigned min/max their own cases. Unsigned minimum\nand AND use all ones; unsigned maximum uses zero. The floating-point\ncases and index-attribute storage width stay unchanged.\n\nFixes #25153.\n\nThe added cases live in the existing common and AMD wide-shuffle tests.\nThey cover `i8`, `i16`, `i32`, and `i64`, and check that the reduction\nactually uses the expected constant. The existing scan, mask, and\nargcompare checks pass too.\n\nAssisted-by: OpenAI Codex\n\nSigned-off-by: Demetrios Agourakis \u003cdemetrios@agourakis.med.br\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d2310a945d351a222bbef6cd312083f4b55373da",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Common/GPU/test/gpu_nested_layout_vector_distribution_multi_reduce.mlir",
      "new_id": "c4aa37bc4e25d736ab4faad2c9134a2abd9bcc52",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Common/GPU/test/gpu_nested_layout_vector_distribution_multi_reduce.mlir"
    },
    {
      "type": "modify",
      "old_id": "d87e7b08dcf22a39093159dfe7c18a7f8181dff1",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/test/ROCDL/gpu_nested_layout_vector_distribution_wide_shuffle.mlir",
      "new_id": "4f8604972a14460ab3868935b1972144e8dae6a5",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/test/ROCDL/gpu_nested_layout_vector_distribution_wide_shuffle.mlir"
    },
    {
      "type": "modify",
      "old_id": "1e539bc831f9b01f37ad2776cda4381a64ca6b79",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp",
      "new_id": "e539fd5a9a194497bcc92ce6c5d2a369cb47a4e0",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp"
    }
  ]
}
