[all-commits] [llvm/llvm-project] 076771: [mlir][vector] Add pattern to break down reduction...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Mon Dec 18 14:55:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07677113ffeb3744df350ef7c4ece1a93f7a5e1f
      https://github.com/llvm/llvm-project/commit/07677113ffeb3744df350ef7c4ece1a93f7a5e1f
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    A mlir/test/Dialect/Vector/break-down-vector-reduction.mlir
    M mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp

  Log Message:
  -----------
  [mlir][vector] Add pattern to break down reductions into arith ops (#75727)

The number of vector elements considered 'small' enough to extract is
parameterized.                                                   
                                                                 
This is to avoid going into specialized reduction lowering when a
single/couple of arith ops can do. Targets without dedicated reduction  
intrinsics can use that as an emulation path too.                  
                                                                   
Depends on https://github.com/llvm/llvm-project/pull/75846.




More information about the All-commits mailing list