[Mlir-commits] [mlir] [MLIR][TOSA] Add --tosa-remove-redundant-transposes pass (PR #108260)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Sep 13 11:08:05 PDT 2024
================
@@ -126,4 +126,18 @@ def TosaValidation : Pass<"tosa-validate", "mlir::ModuleOp"> {
];
}
+def TosaRemoveRedundantTransposes : Pass<"tosa-remove-redundant-transposes", "func::FuncOp"> {
+ let summary = "Remove redundant transposes";
+ let description = [{
+ Pass that identifies and removes redundant tosa.TRANSPOSE operations.
----------------
jpienaar wrote:
Haven't looked at code yet, but are they redundant? vs this is minimizing the number of them (if one had optimized library implementations for given layouts then these would be required, this pass is reducing number of transposes without considering performance impact)
https://github.com/llvm/llvm-project/pull/108260
More information about the Mlir-commits
mailing list