This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use static shape knowledge when lowering memref.reshape
ClosedPublic

Authored by bkramer on May 11 2021, 5:17 AM.

Details

Summary

This is actually necessary for correctness, as memref.reinterpret_cast
doesn't verify if the output shape doesn't match the static sizes.

Diff Detail

Event Timeline

bkramer created this revision.May 11 2021, 5:17 AM
bkramer requested review of this revision.May 11 2021, 5:17 AM
pifon2a accepted this revision.May 11 2021, 5:19 AM

Thanks, Ben!

This revision is now accepted and ready to land.May 11 2021, 5:19 AM