[all-commits] [llvm/llvm-project] 7cc810: [mlir] Progressively lower vector to SCF

Matthias Springer via All-commits all-commits at lists.llvm.org
Tue Apr 20 02:50:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cc8106f679adf28ef06a39486290e5e636e1437
      https://github.com/llvm/llvm-project/commit/7cc8106f679adf28ef06a39486290e5e636e1437
  Author: Matthias Springer <springerm at google.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    A mlir/include/mlir/Conversion/VectorToSCF/ProgressiveVectorToSCF.h
    M mlir/lib/Conversion/VectorToSCF/CMakeLists.txt
    A mlir/lib/Conversion/VectorToSCF/ProgressiveVectorToSCF.cpp
    M mlir/test/Integration/Dialect/Vector/CPU/test-transfer-read-2d.mlir
    A mlir/test/Integration/Dialect/Vector/CPU/test-transfer-read-3d.mlir
    M mlir/test/lib/Transforms/TestVectorTransforms.cpp

  Log Message:
  -----------
  [mlir] Progressively lower vector to SCF

Add a new ProgressiveVectorToSCF pass that lowers vector transfer ops to SCF by gradually unpacking one dimension at time. Unpacking stops at 1D, but can be configured to stop earlier, should the HW support (N>1)-d vectors.

The current implementation cannot handle permutation maps, masks, tensor types and unrolling yet. These will be added in subsequent commits. Once features are on par with VectorToSCF, this implementation will replace VectorToSCF.

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




More information about the All-commits mailing list