)]}'
{
  "commit": "f70bd2dd7c84a36ff253e789d863bf278cc9defd",
  "tree": "3d3eba341d1ad57193a9b6cb563c5d43faf720e1",
  "parents": [
    "e2b2815f8b1ce67805e8805f949ec58319845709"
  ],
  "author": {
    "name": "Florian Walbroel",
    "email": "walbroel@roofline.ai",
    "time": "Mon Nov 16 09:59:54 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 16 09:59:54 2026 +0100"
  },
  "message": "[LLVMCPU] Verify conv decomposition configs on generic convolutions too (#25253)\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`verifyConvTileAndDecomposeExpertConfig` returned early unless the op\nimplemented `linalg::ConvolutionOpInterface`, which only named ops do,\nand read the spatial loop positions from a `TypeSwitch` over named ops.\n\nA generalized convolution selects `ConvTileAndDecomposeExpert` too\n(through `linalg::isaConvolutionOpOfType`), but skipped this\nverification. A lowering config that is rejected on the named op was\naccepted on its `linalg.generic` form. Since GlobalOptimization\ngeneralizes all convolutions, that is the form `iree-compile` hands to\nthis pass.\n\nThis PR matches the convolution with `linalg::isaConvolutionOpInterface`\nand takes the output image and filter loops from\n`linalg::inferConvolutionDims`. Named and generic forms are verified the\nsame way, and the per-op layout table is gone (34 lines removed, 12\nadded in the pass). Ops with other than two spatial dims are still\nrejected as `unsupported conv types`.\n\n## Tests\n\n`illegal_configuration.mlir` gets:\n\n* a second RUN line that generalizes the named ops first. On `main`, 6\nof the existing expected errors are not produced in that mode;\n* an NCHW convolution and an NCHW pooling that cannot be decomposed;\n* an NCHW convolution with a config that is valid only when the spatial\nloops are read in NCHW order, which must not produce an error.\n\n## Effect on `iree-compile`\n\nThe verifier now runs on every convolution and pooling in the pipeline,\nso a config that strategy selection picks itself could in principle be\nrejected now. To check, I ran strategy selection over 103 single-op\nprograms (convolutions and poolings in NHWC and NCHW, 1-D, 3-D,\ndepthwise, grouped, QDQ variants, plus non-conv ops) in 9 flag\nconfigurations (default, data tiling, ukernels, im2col) for five\ntargets: the Apple M4 host, RISC-V 64 (`spacemit-x60`), x86-64\n(`haswell`, `skylake-avx512`) and AArch64 SVE (`neoverse-v1`, scalable\nvectorization). All 465 compilations per target pass selection and\nverification. The change cannot alter generated code, only reject\nconfigs.\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": "052adbc2401f4f6d4edd02adc11d8a73ac806dcc",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUSelectLoweringStrategy.cpp",
      "new_id": "9b59eec44f353db3137d5f1ed004f2e80f97e612",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUSelectLoweringStrategy.cpp"
    },
    {
      "type": "modify",
      "old_id": "9a44261a4217248df94af981da7a9ce334e37a94",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir",
      "new_id": "48803e1dfe90dc063b9989ae9a99be875f3cfa9e",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir"
    }
  ]
}
