Issue 60656
Summary [MLIR] `tensor.pack` with a constant arguments should fold
Labels mlir, mlir:tensor
Assignees
Reporter joker-eph
    There seems to be a missing folder for `tensor.pack`, things like this:

```
    %cst = arith.constant dense<1.000000e-01> : tensor<16x47x3x3xf32>
    %pack_2 = tensor.pack %cst padding_value(%cst_1 : f32) inner_dims_pos = [1, 0] inner_tiles = [32, 16] into %2 : tensor<16x47x3x3xf32> -> tensor<1x2x3x3x32x16xf32>
```

Seems like obvious folding.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to