[all-commits] [llvm/llvm-project] 5759e4: [mlir][Linalg] Avoid using scf.parallel for non-pa...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Tue May 26 21:53:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5759e4731635e1f28fef2c4619491a1b4a2bc305
      https://github.com/llvm/llvm-project/commit/5759e4731635e1f28fef2c4619491a1b4a2bc305
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
    M mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
    M mlir/lib/Dialect/Linalg/Utils/Utils.cpp
    M mlir/test/Dialect/Linalg/parallel_loops.mlir
    A mlir/test/Dialect/Linalg/tile_parallel_reduce.mlir
    M mlir/test/Dialect/Linalg/transform-patterns.mlir
    M mlir/test/lib/Transforms/TestLinalgTransforms.cpp

  Log Message:
  -----------
  [mlir][Linalg] Avoid using scf.parallel for non-parallel loops in Linalg ops.

Modifying the loop nest builder for generating scf.parallel loops to
not generate scf.parallel loops for non-parallel iterator types in
Linalg operations. The existing implementation incorrectly generated
scf.parallel for all tiled loops. It is rectified by refactoring logic
used while lowering to loops that accounted for this.

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


  Commit: 0ed2d4c7cba8fb15e51d0f6f4e9011027c17085c
      https://github.com/llvm/llvm-project/commit/0ed2d4c7cba8fb15e51d0f6f4e9011027c17085c
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
    M mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
    A mlir/test/Dialect/Linalg/promotion_options.mlir
    M mlir/test/lib/Transforms/TestLinalgTransforms.cpp

  Log Message:
  -----------
  [mlir][linalg] Allow promotion to use callbacks for
alloc/dealloc/copies.

Add options to LinalgPromotion to use callbacks for implementating the
allocation, deallocation of buffers used for the promoted subviews,
and to copy data into and from the original subviews to the allocated
buffers.
Also some misc. cleanup of the code.

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


Compare: https://github.com/llvm/llvm-project/compare/a7141480fb04...0ed2d4c7cba8


More information about the All-commits mailing list