Skip to content

Commit

Permalink
[mlir][tosa] Update pass pipeline for TosaToLinalg (llvm#69679)
Browse files Browse the repository at this point in the history
This patch fixes the nesting of TosaValidation pass added in
TosaToLinalg pipeline.
  • Loading branch information
Groverkss authored Oct 20, 2023
1 parent 291d8ab commit b8ad68f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ void mlir::tosa::addTosaToLinalgPasses(
pm.addNestedPass<func::FuncOp>(tosa::createTosaLayerwiseConstantFoldPass(
{options.aggressiveReduceConstant}));
pm.addNestedPass<func::FuncOp>(tosa::createTosaMakeBroadcastablePass());
pm.addNestedPass<func::FuncOp>(tosa::createTosaValidation(validationOptions));
pm.addNestedPass<mlir::ModuleOp>(
tosa::createTosaValidation(validationOptions));
pm.addNestedPass<func::FuncOp>(tosa::createTosaToLinalg());
}

0 comments on commit b8ad68f

Please sign in to comment.