[all-commits] [llvm/llvm-project] 2219f9: [mlir][MemRef] Fix MemRefCopyOpLowering to use cor...

Adrian Kuegel via All-commits all-commits at lists.llvm.org
Fri Feb 11 04:59:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2219f9f57cff2ecc0402b393630e0975f8873603
      https://github.com/llvm/llvm-project/commit/2219f9f57cff2ecc0402b393630e0975f8873603
  Author: Adrian Kuegel <akuegel at google.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir

  Log Message:
  -----------
  [mlir][MemRef] Fix MemRefCopyOpLowering to use correct number of bytes

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().

Differential Revision: https://reviews.llvm.org/D119540




More information about the All-commits mailing list