[all-commits] [llvm/llvm-project] 98542a: [mlir][Vector] Move vector.extract canonicalizers ...

Kunwar Grover via All-commits all-commits at lists.llvm.org
Tue Feb 25 21:28:46 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98542a3d6d087e1baf6c90d134140e2ed858f823
      https://github.com/llvm/llvm-project/commit/98542a3d6d087e1baf6c90d134140e2ed858f823
  Author: Kunwar Grover <groverkss at gmail.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Linalg/vectorize-tensor-extract.mlir
    M mlir/test/Dialect/Vector/linearize.mlir
    M mlir/test/Dialect/Vector/scalar-vector-transfer-to-memref.mlir
    M mlir/test/Dialect/Vector/vector-gather-lowering.mlir

  Log Message:
  -----------
  [mlir][Vector] Move vector.extract canonicalizers for DenseElementsAttr to folders (#127995)

This PR moves vector.extract canonicalizers for DenseElementsAttr (splat
and non splat case) to folders. Folders are local, and it's always
better to implement a folder than a canonicalization pattern.

This PR is mostly NFC-ish, because the functionality mostly remains
same, but is now run as part of a folder, which is why some tests are
changed, because GreedyPatternRewriter tries to fold by default.

There is also a test change which makes the indices of a vector.extract
test dynamic. This is so that it doesn't fold away after this pr.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list