[Mlir-commits] [mlir] [mlir][tosa] Update pass pipeline for TosaToLinalg (PR #69679)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 19 23:25:21 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Kunwar Grover (Groverkss)

<details>
<summary>Changes</summary>

This patch fixes the nesting of TosaValidation pass added in TosaToLinalg pipeline.

---
Full diff: https://github.com/llvm/llvm-project/pull/69679.diff


1 Files Affected:

- (modified) mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp (+1-1) 


``````````diff
diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
index 3c54f85b033b0b6..268b0b4711536ed 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
@@ -90,6 +90,6 @@ 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());
 }

``````````

</details>


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


More information about the Mlir-commits mailing list