[all-commits] [llvm/llvm-project] c4979c: [mlir][VectorOps] Add fold vector.shuffle -> vecto...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Wed Mar 6 05:36:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4979c935f778eca623afd17dad6f97facba34bf
      https://github.com/llvm/llvm-project/commit/c4979c935f778eca623afd17dad6f97facba34bf
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  -----------
  [mlir][VectorOps] Add fold vector.shuffle -> vector.interleave (#80968)

This folds fixed-size vector.shuffle ops that perform a 1-D interleave
to a vector.interleave operation.

For example:

```mlir
%0 = vector.shuffle %a, %b [0, 2, 1, 4] : vector<2xi32>, vector<2xi32>
```

folds to:

```mlir
%0 = vector.interleave %a, %b : vector<2xi32>
```

Depends on: #80967



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