)]}'
{
  "commit": "d0343ad548cee150a4c98670c7be2273a1aec6d9",
  "tree": "26282dfe287e863f0ac45f50e148c23366f216d3",
  "parents": [
    "f70bd2dd7c84a36ff253e789d863bf278cc9defd"
  ],
  "author": {
    "name": "Florian Walbroel",
    "email": "walbroel@roofline.ai",
    "time": "Mon Nov 16 09:59:55 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 16 09:59:55 2026 +0100"
  },
  "message": "[LLVMCPU] Tile fills to vector sizes like other ops (#25255)\n\n## Context\n\nWe have inconsistent handling of named linalg operations v.s. generics.\nIdeally it should not matter in which form we see the operation, in all\ncases we should handle the same way if it is semantically identical.\n\nThe usage of `llvm::isa` can prevent this in later stages of the\npipeline, thus it is preferable to avoid checks on the type and rather\nuse the op interface instead e.g. `linalg::isaConvolutionOpInterface`\n\n## This PR\n\n`LLVMCPUTileToVectorSizePass` skipped every `linalg.fill`, on the\nassumption that a fill has already been tiled together with its\nconsumer. An equivalent `linalg.generic` fill did not get the exemption,\nso the two forms were handled differently: a named 16x16 fill with\nvector sizes `[4, 4]` was left alone, its generalized form got two\nloops.\n\nThe pass already leaves an op alone when its dimensions are not larger\nthan the vector sizes, or not statically known. That is the situation of\na fill that was tiled with its consumer, so the exemption looks\nredundant. This PR removes it; a fill then goes through the same check\nas every other op.\n\n## Effect on `iree-compile`\n\nI compared the compiled modules before and after, byte for byte:\n\n| Programs | Target | Compiled | Identical |\n|---|---|---:|---:|\n| 103 single-op programs (convolutions, poolings, contractions,\nattention, pad, reductions, QDQ variants), default flags and data tiling\n+ ukernels | Apple M4 host | 204 | 204 |\n| `tests/e2e/**/*.mlir`, same two flag sets | Apple M4 host | 403 | 401\n|\n| | RISC-V 64, `spacemit-x60` | 403 | 403 |\n| | x86-64, `skylake-avx512` | 403 | 403 |\n\nThe two differing modules are `stablehlo_models/mnist_fake_weights` in\nboth flag sets. That program does not compile deterministically on\n`main` on this host: repeated runs of the same compiler alternate\nbetween two outputs, so it says nothing about this change. 7 further e2e\nfiles do not compile standalone with these flags on either side.\n\nSo I found no program where the exemption changes the generated code. If\nthere is a case where a fill reaches this pass larger than its vector\nsizes and should stay untiled, I have not been able to construct it;\npointers welcome.\n\n## Tests\n\n`tile_to_vector_size.mlir` gets a fill that is larger than its vector\nsizes and is now tiled.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nSigned-off-by: Florian Walbroel \u003cwalbroel@roofline.ai\u003e\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "de248694b8794693f54ec1e05e5c9be94f875726",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUTileToVectorSize.cpp",
      "new_id": "000d8eda9d41e4a42b443e93a7920d70a4aff56c",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUTileToVectorSize.cpp"
    },
    {
      "type": "modify",
      "old_id": "ac8fbee8f3f604feddd994b5b3fbe4861e34c80b",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/test/tile_to_vector_size.mlir",
      "new_id": "bbd415bd53a40342d254b5301b38d8d5a07f9f7b",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/test/tile_to_vector_size.mlir"
    }
  ]
}
