This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Support casts in EmptyTensorElimination
ClosedPublic

Authored by springerm on Jul 24 2023, 2:09 PM.

Details

Summary

EmptyTensorElimination is a pre-bufferization transformation that replaces "tensor.empty" ops with "tensor.extract_slice" ops. This revision adds support for cases where the input IR contains "tensor.cast" ops.

Diff Detail

Event Timeline

springerm created this revision.Jul 24 2023, 2:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 2:09 PM
springerm requested review of this revision.Jul 24 2023, 2:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 2:09 PM
nicolasvasilache accepted this revision.Jul 31 2023, 2:10 AM
This revision is now accepted and ready to land.Jul 31 2023, 2:10 AM
This revision was landed with ongoing or failed builds.Jul 31 2023, 6:20 AM
This revision was automatically updated to reflect the committed changes.