From 309bfecf7dddb9d6530fa95656bbcdd82423fd44 Mon Sep 17 00:00:00 2001 From: Aviad Cohen Date: Sat, 22 Apr 2023 20:01:22 +0300 Subject: [PATCH] [mlir][tosa] Call TosaInferShapes pass in addTosaToLinalgPasses This pass is useful to legalize rankless and dynamic shapes towards static using operands' shapes & types. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D148998 --- mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp index 820cadb..c1b6d1c 100644 --- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp +++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp @@ -81,6 +81,7 @@ void mlir::tosa::addTosaToLinalgPasses(OpPassManager &pm, pm.addNestedPass(tosa::createTosaOptionalDecompositions()); pm.addNestedPass(createCanonicalizerPass()); + pm.addNestedPass(tosa::createTosaInferShapesPass()); pm.addNestedPass(tosa::createTosaMakeBroadcastablePass()); pm.addNestedPass(tosa::createTosaToLinalgNamed()); pm.addNestedPass(createCanonicalizerPass()); -- 2.7.4