diff --git a/mlir/include/mlir/Reducer/Passes/OpReducer.h b/mlir/include/mlir/Reducer/Passes/OpReducer.h --- a/mlir/include/mlir/Reducer/Passes/OpReducer.h +++ b/mlir/include/mlir/Reducer/Passes/OpReducer.h @@ -15,10 +15,6 @@ #ifndef MLIR_REDUCER_PASSES_OPREDUCER_H #define MLIR_REDUCER_PASSES_OPREDUCER_H -#include "mlir/Dialect/GPU/GPUDialect.h" -#include "mlir/Dialect/LLVMIR/LLVMDialect.h" -#include "mlir/Dialect/SCF/SCF.h" -#include "mlir/Dialect/SPIRV/SPIRVOps.h" #include "mlir/IR/Region.h" #include "mlir/Reducer/ReductionNode.h" #include "mlir/Reducer/ReductionTreeUtils.h" diff --git a/mlir/tools/mlir-reduce/mlir-reduce.cpp b/mlir/tools/mlir-reduce/mlir-reduce.cpp --- a/mlir/tools/mlir-reduce/mlir-reduce.cpp +++ b/mlir/tools/mlir-reduce/mlir-reduce.cpp @@ -13,13 +13,12 @@ // //===----------------------------------------------------------------------===// -#include - #include "mlir/InitAllDialects.h" #include "mlir/Parser.h" #include "mlir/Pass/Pass.h" #include "mlir/Pass/PassManager.h" #include "mlir/Reducer/OptReductionPass.h" +#include "mlir/Reducer/Passes/OpReducer.h" #include "mlir/Reducer/ReductionNode.h" #include "mlir/Reducer/ReductionTreePass.h" #include "mlir/Reducer/Tester.h" @@ -110,8 +109,9 @@ // Reduction tree pass with OpReducer variant generation and single path // traversal. - pm.addPass(std::make_unique>( - &test)); + pm.addPass( + std::make_unique, SinglePath>>( + &test)); } ModuleOp m = moduleRef.get().clone();