[all-commits] [llvm/llvm-project] 435f7d: [mlir][vector] Add unroll pattern for vector.gather

Quinn Dawkins via All-commits all-commits at lists.llvm.org
Mon Apr 24 11:04:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435f7d4c2e5885e13328919b1dfa5abe5dd77581
      https://github.com/llvm/llvm-project/commit/435f7d4c2e5885e13328919b1dfa5abe5dd77581
  Author: Quinn Dawkins <quinn at nod-labs.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
    M mlir/test/Dialect/Vector/vector-transfer-unroll.mlir
    M mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp

  Log Message:
  -----------
  [mlir][vector] Add unroll pattern for vector.gather

This pattern is useful for SPIR-V to unroll to a supported vector size
before later lowerings. The unrolling pattern is closer to an
elementwise op than the transfer ops because the index values from which
to extract elements are captured by the index vector and thus there is
no need to update the base offsets when unrolling gather.

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




More information about the All-commits mailing list