[Mlir-commits] [mlir] [mlir][tosa] Change Transpose perms operand to attribute (PR #128115)

Tai Ly llvmlistbot at llvm.org
Mon Feb 24 13:08:26 PST 2025


================
@@ -607,9 +602,9 @@ void TosaReduceTransposes::runOnOperation() {
         !llvm::isa<RankedTensorType>(output.getType()))
       return;
 
-    // No transformation when transpose permutation non-constant.
-    if (failed(transposeOp.getConstantPerms(perms)))
-      return;
+    for (int32_t v : transposeOp.getPerms()) {
----------------
Tai78641 wrote:

done

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


More information about the Mlir-commits mailing list