This is an archive of the discontinued LLVM Phabricator instance.

[mlir][CPURunner] Avoid a crash in memrefCopy when called with empty shapes.
ClosedPublic

Authored by akuegel on Aug 3 2021, 6:19 AM.

Details

Summary

memrefCopy should just return early if there are no elements to copy.

Diff Detail

Event Timeline

akuegel created this revision.Aug 3 2021, 6:19 AM
akuegel requested review of this revision.Aug 3 2021, 6:19 AM
ftynse accepted this revision.Aug 3 2021, 6:24 AM
This revision is now accepted and ready to land.Aug 3 2021, 6:24 AM