)]}'
{
  "commit": "42d17d4ac1518a0af643875a823bb5b90f908bcd",
  "tree": "ea9e8930ed7ff653ae65595aae8554a530346d6f",
  "parents": [
    "d4835a6eb8ced9651842644744e19cd8c0ecfb68"
  ],
  "author": {
    "name": "Zmicier Prybysh",
    "email": "zprybysh@baylibre.com",
    "time": "Mon Nov 09 10:34:19 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 09 09:34:19 2026 +0000"
  },
  "message": "[Codegen][CPU] Keep roundeven native where LLVM lowers it to instructions (#25219)\n\nMathTransform has expanded `math.roundeven` into a software sequence on\nevery target except ROCm and WebGPU since 68439a0e on every llvm-cpu\ntarget.\n\nMost CPU targets actually have an intruction: FRINTN on AArch64,\nROUNDPS/ROUNDPD on x86 with SSE4.1, FCVT on riscv64 with D extension.\n\nSince `math.roundeven` affects a lot of float-to-int quantization cases,\nso it makes sense to use instructions and not software sequences\nwherever possible.\n\nTests:\n- New lit cases cover each target used in the check, also native\nintegration tests were added\n- Numerical results are identical to before the change for f32 and f64,\nchecked on x86, AArch64 (QEMU) and riscv64 hardware (SpacemiT K3).\n\nRelated issue: #12778.\n\nAssisted-By: Claude Code\n\n---------\n\nSigned-off-by: Zmicier Prybysh \u003czprybysh@baylibre.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ab48a0816f3311236bb472d57640ae0947217f56",
      "old_mode": 33188,
      "old_path": "compiler/plugins/target/LLVMCPU/test/BUILD.bazel",
      "new_id": "b257fde229c0dcc21c9f37446567111610aefad8",
      "new_mode": 33188,
      "new_path": "compiler/plugins/target/LLVMCPU/test/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "562a5452dafff7c2207934d29d57e36c562864c9",
      "old_mode": 33188,
      "old_path": "compiler/plugins/target/LLVMCPU/test/CMakeLists.txt",
      "new_id": "15182a2464fc4ee6bbfb4d3018840a0859fc61ce",
      "new_mode": 33188,
      "new_path": "compiler/plugins/target/LLVMCPU/test/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "95e8fb6234bc8e970beb915275f9ecd5c25b9716",
      "new_mode": 33188,
      "new_path": "compiler/plugins/target/LLVMCPU/test/roundeven_native.mlir"
    },
    {
      "type": "modify",
      "old_id": "b245a5b6b411cab50b2774200ae15c4b99bc6e6b",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Common/MathTransform.cpp",
      "new_id": "f4552cd4dd947d14eab50e8d1bed08bfcae7df6f",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Common/MathTransform.cpp"
    },
    {
      "type": "modify",
      "old_id": "c1c4654929338e2235c981e4c5dc5b4da262ca6f",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Common/test/math_transform.mlir",
      "new_id": "ddcdd932413408a03b3ce4ed6d519debf35cfef3",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Common/test/math_transform.mlir"
    },
    {
      "type": "modify",
      "old_id": "ecfabc3ce1075926045b57ef0ad198d7adba633a",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Utils/CPUUtils.cpp",
      "new_id": "e0454ded2c2968d298cd663ab03f13aadfb4cf1d",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Utils/CPUUtils.cpp"
    },
    {
      "type": "modify",
      "old_id": "43f813957b0be9ed1efde3ca00ac78eb9aae7176",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Utils/CPUUtils.h",
      "new_id": "ccc52170d24ae5fa1e54bb636fd1be6224e28f93",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Utils/CPUUtils.h"
    }
  ]
}
