[Mlir-commits] [mlir] [MLIR][TOSA] Add --tosa-remove-redundant-transposes pass (PR #108260)
Arteen Abrishami
llvmlistbot at llvm.org
Fri Sep 13 11:27:40 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.
----------------
arteen1000 wrote:
I use the term redundant to mean 'not necessary.'
As an example, the first test `@test_transpose_tracks_to_nullifying_single_step`, you can see how those transposes might be unnecessary.
https://github.com/llvm/llvm-project/pull/108260
More information about the Mlir-commits
mailing list