[Mlir-commits] [mlir] b8ad68f - [mlir][tosa] Update pass pipeline for TosaToLinalg (#69679)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Oct 20 00:05:33 PDT 2023
Author: Kunwar Grover
Date: 2023-10-20T12:35:30+05:30
New Revision: b8ad68fcc3c453728f4b91ab0c24a3866b59a3c9
URL: https://github.com/llvm/llvm-project/commit/b8ad68fcc3c453728f4b91ab0c24a3866b59a3c9
DIFF: https://github.com/llvm/llvm-project/commit/b8ad68fcc3c453728f4b91ab0c24a3866b59a3c9.diff
LOG: [mlir][tosa] Update pass pipeline for TosaToLinalg (#69679)
This patch fixes the nesting of TosaValidation pass added in
TosaToLinalg pipeline.
Added:
Modified:
mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
index 3c54f85b033b0b6..2072fabc29242eb 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
@@ -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());
}
More information about the Mlir-commits
mailing list