[Mlir-commits] [mlir] [Tosa] Fix TosaValidation for FuncOp (PR #69997)

Mehdi Amini llvmlistbot at llvm.org
Mon Oct 23 22:17:43 PDT 2023


================
@@ -90,7 +90,6 @@ void mlir::tosa::addTosaToLinalgPasses(
   pm.addNestedPass<func::FuncOp>(tosa::createTosaLayerwiseConstantFoldPass(
       {options.aggressiveReduceConstant}));
   pm.addNestedPass<func::FuncOp>(tosa::createTosaMakeBroadcastablePass());
-  pm.addNestedPass<mlir::ModuleOp>(
-      tosa::createTosaValidation(validationOptions));
+  pm.addNestedPass<func::FuncOp>(tosa::createTosaValidation(validationOptions));
----------------
joker-eph wrote:

Why not simply `pm.addPass(tosa::createTosaValidation(validationOptions));` ?

https://github.com/llvm/llvm-project/pull/69997


More information about the Mlir-commits mailing list