diff options
| author | Artem Gindinson <gindinson@roofline.ai> | 2025-06-13 20:03:24 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-13 20:03:24 +0200 | 
| commit | f82cf7442029d3376813db82eca60800e999bfb9 (patch) | |
| tree | 988afabf8fc4c9a7229be946beb982bff81750c5 /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | 0c7ce6883a04dadd9daf0d41cba58c2f9eec19ad (diff) | |
| download | llvm-f82cf7442029d3376813db82eca60800e999bfb9.zip llvm-f82cf7442029d3376813db82eca60800e999bfb9.tar.gz llvm-f82cf7442029d3376813db82eca60800e999bfb9.tar.bz2 | |
[mlir][tensor] Fix `getReassociationForCollapse` for tensor/scalar re… (#144118)
…shapes
Commit 6e5a142 changed the behavior of the function when computing
reassociations between tensors (consisting of unit/dynamic dimensions)
and scalars/0d vectors. The IR representation for such reshapes actually
expects an empty reassociation, like so:
```
func.func @example(%arg0 : tensor<?x?x?xf32>) -> tensor<f32> {
  %0 = tensor.collapse_shape %arg0 [] : tensor<?x?x?xf32> into tensor<f32>
}
```
Restore the original behavior - the routine should resort to reporting
failures when compile time-known non-unit dimensions are part of the
attempted reassociation.
Signed-off-by: Artem Gindinson <gindinson@roofline.ai>
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions
