Page MenuHomePhabricator

[mlir][memref] ReinterpretCast: allow static sizes/strides/offset where affine map expects dynamic

Authored by Hardcode84 on Nov 28 2021, 12:40 PM.


  • There is no reason to forbid that case
  • Also, user will get very unfriendly error like expected result type with offset = -9223372036854775808 instead of 1

Diff Detail

Event Timeline

Hardcode84 created this revision.Nov 28 2021, 12:40 PM
Hardcode84 requested review of this revision.Nov 28 2021, 12:40 PM
herhut accepted this revision.Dec 21 2021, 2:36 AM

Thanks. I don't see any reason to disallow this either and was surprised by the error message.

This revision is now accepted and ready to land.Dec 21 2021, 2:36 AM