This is an archive of the discontinued LLVM Phabricator instance.

[mlir][MemRef] Make sure types match when folding dim(reshape)
ClosedPublic

Authored by bkramer on Jun 15 2021, 3:33 AM.

Details

Summary

Reshape can take integer types in addition to index, but dim always
returns index.

Diff Detail

Event Timeline

bkramer created this revision.Jun 15 2021, 3:33 AM
bkramer requested review of this revision.Jun 15 2021, 3:33 AM
pifon2a accepted this revision.Jun 15 2021, 3:44 AM

Always MOAR casts.

This revision is now accepted and ready to land.Jun 15 2021, 3:44 AM
This revision was landed with ongoing or failed builds.Jun 15 2021, 3:50 AM
This revision was automatically updated to reflect the committed changes.