[all-commits] [llvm/llvm-project] 7f3b0e: [mlir][arith] Add narrowing patterns to commute mo...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Mon May 1 11:34:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f3b0e584513611bb1d804892eb269ae45d8e715
      https://github.com/llvm/llvm-project/commit/7f3b0e584513611bb1d804892eb269ae45d8e715
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M mlir/lib/Dialect/Arith/Transforms/IntNarrowing.cpp
    M mlir/test/Dialect/Arith/int-narrowing.mlir

  Log Message:
  -----------
  [mlir][arith] Add narrowing patterns to commute more vector ops

This commutes the extension (`arith.extsi`, `arith.extui`) over the
following vector ops: `vector.broadcast`, `vector.shape_cast`,
`vector.transpose`, `vector.flat_transpose`.

I focused on these as I saw them getting created by vector unroll
patterns. Maybe except `vector.flat_transpose`.

Reviewed By: antiagainst

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




More information about the All-commits mailing list