[all-commits] [llvm/llvm-project] cad085: [mlir][memref] Lower copy of memrefs with outer si...

Oleg Shyshkov via All-commits all-commits at lists.llvm.org
Fri May 12 08:18:37 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cad08503b8d5ffc3834ab2f3e10f9cf44f6f0ee3
  Author: Oleg Shyshkov <shyshkov at google.com>
  Date:   2023-05-12 (Fri, 12 May 2023)

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

  Log Message:
  [mlir][memref] Lower copy of memrefs with outer size-1 dims to intrinsic memcpy.

With this change, more `memref.copy` will be lowered to the efficient `memcpy`. For example,

memref.copy %subview, %alloc : memref<1x576xf32, strided<[704, 1]>> to memref<1x576xf32>

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

More information about the All-commits mailing list