[all-commits] [llvm/llvm-project] 333818: [mlir][affine] Remove one-element linearize_index ...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Mon Nov 11 08:08:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3338186d463b32a3bababaa345da861d93c83152
      https://github.com/llvm/llvm-project/commit/3338186d463b32a3bababaa345da861d93c83152
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2024-11-11 (Mon, 11 Nov 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
    M mlir/lib/Dialect/Affine/IR/AffineOps.cpp
    M mlir/test/Dialect/Affine/canonicalize.mlir

  Log Message:
  -----------
  [mlir][affine] Remove one-element linearize_index as a canonicalization (#115542)

By analogy to the canonicalization for affine.delinearize_index, remove
affine.linearize_index ops that only have one multi-index input.

Example:

Canonicalize
```mlir
%1 = affine.linearize_index [%0] by (64)
```
to
```mlir
%1 = %0
```

While I'm here, get rid of an extra space in the syntax.



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