[Mlir-commits] [mlir] [MLIR] Add shape propagation through tensor.pad (PR #136681)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Aug 11 02:06:30 PDT 2025


banach-space wrote:

> This will be a example for this purpose, but I am not sure where to put this.

The flags that you used in your example don't exist:
```bash
$ bin/mlir-opt -tensor-reshape-propagation -linalg-elementwise-fusion -canonicalize  eample.mlir
mlir-opt: Unknown command line argument '-tensor-reshape-propagation'.  Try: 'bin/mlir-opt --help'
mlir-opt: Did you mean '--sharding-propagation'?
mlir-opt: Unknown command line argument '-linalg-elementwise-fusion'.  Try: 'bin/mlir-opt --help'
mlir-opt: Did you mean '--linalg-fuse-elementwise-ops'?
```

Where did you take them from? Also, the MLIR file is "broken":
```bash
$ bin/mlir-opt bad.mlir
bad.mlir:1:1: error: custom op 'func' is unknown (tried 'builtin.func' as well)
func @pad_fuse(%arg0: tensor<2x3xf32>) -> tensor<2x4xf32> {
^
```

There's more issues then just this one.

> could you recommend appropriate place to put?

Please provide a working example first. Sharing broken examples is bad use of reviewers time.

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


More information about the Mlir-commits mailing list