mirror-llvm-project/mlir/test/mlir-opt
Mehdi Amini 5e3202749a
[MLIR] Fix crash in FrozenRewritePatternSet when PDL lowering is skipped by debug counter (#186159)
When using --mlir-debug-counter=pass-execution-skip=N, the MLIR debug
counter can skip the internal PDL-to-PDLInterp lowering pass that runs
inside FrozenRewritePatternSet's constructor. This caused an assertion
failure in PDLByteCode::Generator::generate() because the PDL module
wasn't properly converted to the interpreter dialect.

The fix adds a check after the PDL lowering pipeline runs to verify that
the expected matcher function symbol was produced. If the symbol is
absent (e.g., because the lowering was skipped by a debug counter),
bytecode generation is skipped entirely and PDL patterns are not
applied. This allows debug counter bisection to work without crashing.

Fixes #131441
Fixes #128342

Assisted-by: Claude Code
2026-03-18 16:01:49 +01:00
..
async.mlir
commandline.mlir [mlir][x86] Move AMX dialect into X86 dialect (#183717) 2026-03-02 11:47:30 +01:00
debugcounter-invalid-cl-options.mlir [MLIR] Do not abort on invalid --mlir-debug-counter values (#181751) 2026-02-27 09:50:10 +09:00
debugcounter.mlir [MLIR] Fix crash in FrozenRewritePatternSet when PDL lowering is skipped by debug counter (#186159) 2026-03-18 16:01:49 +01:00
debuggerhook.mlir
expected-unknown-loc-unmatched.mlir [mlir] Fix crash in diagnostic verifier for unmatched @unknown expectations (#186148) 2026-03-17 12:26:51 +01:00
local-reproducer-with-threading.mlir
outputfile.mlir
split-markers.mlir