This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Tensor] Fix ExtractSliceFromReshape transform edge case
ClosedPublic

Authored by christopherbate on Sep 16 2022, 3:12 PM.

Details

Summary

The transformation would fail if none of the sliced dimensions were
linearized by the producing tensor.collapse_shape. This is a trivial
edge case but it wasn't correctly tested. Fixes the issue and adds a test.

Diff Detail

Event Timeline

christopherbate requested review of this revision.Sep 16 2022, 3:12 PM
nicolasvasilache accepted this revision.Sep 19 2022, 3:30 AM

Thanks Christopher!

This revision is now accepted and ready to land.Sep 19 2022, 3:30 AM