* A Reducer is a kind of RewritePattern, so it's just the same as writing graph rewrite. * ReductionTreePass operates on Operation rather than ModuleOp, so that * we are able to reduce a nested structure(e.g., module in module) by * self-nesting. Reviewed By: jpienaar, rriddle Differential Revision: https://reviews.llvm.org/D101046
8 lines
149 B
MLIR
8 lines
149 B
MLIR
// RUN: mlir-opt %s
|
|
// RUN: not mlir-opt %s -test-mlir-reducer -pass-test function-reducer
|
|
|
|
func @test() {
|
|
"test.op_crash"() : () -> ()
|
|
return
|
|
}
|