This is an archive of the discontinued LLVM Phabricator instance.

[mlir][MemRef] Fix MemRefCopyOpLowering to use correct number of bytes
ClosedPublic

Authored by akuegel on Feb 11 2022, 4:12 AM.

Details

Summary

When lowering to memrefCopy call, the size for i1 type was calculated as 0.
Instead of using getTypeSizeInBits() and dividing by 8, we should just use getTypeSize().

Diff Detail

Event Timeline

akuegel created this revision.Feb 11 2022, 4:12 AM
akuegel requested review of this revision.Feb 11 2022, 4:12 AM
bkramer accepted this revision.Feb 11 2022, 4:24 AM

looks good

This revision is now accepted and ready to land.Feb 11 2022, 4:24 AM