Create a reduction pass that accepts an optimization pass as argument and only replaces the golden module in the pipeline if the output of the optimization pass is smaller than the input and still exhibits the interesting behavior. Add a -test-pass option to test individual passes in the MLIR Reduce tool. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D84783
8 lines
148 B
MLIR
8 lines
148 B
MLIR
// RUN: mlir-opt %s
|
|
// RUN: not mlir-opt %s -test-mlir-reducer -pass-test function-reducer
|
|
|
|
func @test() {
|
|
"test.crashOp"() : () -> ()
|
|
return
|
|
}
|