This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Canonicalize dim ops of tiled_loop block args
ClosedPublic

Authored by springerm on Aug 18 2021, 12:01 AM.

Details

Summary

E.g.:

%y = ... : tensor<...>
linalg.tiled_loop ... ins(%x = %y : tensor<...>) {
  tensor.dim %x, %c0 : tensor<...>
}

is rewritten to:

%y = ... : tensor<...>
linalg.tiled_loop ... ins(%x = %y : tensor<...>) {
  tensor.dim %y, %c0 : tensor<...>
}

Depends On D108270

Diff Detail

Event Timeline

springerm created this revision.Aug 18 2021, 12:01 AM
springerm requested review of this revision.Aug 18 2021, 12:01 AM
nicolasvasilache accepted this revision.Aug 18 2021, 5:00 AM
This revision is now accepted and ready to land.Aug 18 2021, 5:00 AM
This revision was landed with ongoing or failed builds.Aug 18 2021, 7:27 PM
This revision was automatically updated to reflect the committed changes.