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().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D119540
[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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 11 2022, 4:24 AM Closed by commit rG2219f9f57cff: [mlir][MemRef] Fix MemRefCopyOpLowering to use correct number of bytes (authored by akuegel). · Explain WhyFeb 11 2022, 4:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 407838 mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir
|