[mlir][arith] Add narrowing patterns for other insertion ops
authorJakub Kuderski <kubak@google.com>
Mon, 1 May 2023 18:29:01 +0000 (14:29 -0400)
committerJakub Kuderski <kubak@google.com>
Mon, 1 May 2023 18:29:02 +0000 (14:29 -0400)
commit3ff870881f5f0d3d08753efd558ac5f05d04a574
tree309d42fa6e917ce414286b7e4dcbf53e7b5f9e96
parent0f1a8b458d93b5e782881aaeedefdbaf44d8d18d
[mlir][arith] Add narrowing patterns for other insertion ops

Allow to commute extension ops over `vector.insertelement` and
`vector.insert_strided_slice`.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D149509
mlir/lib/Dialect/Arith/Transforms/IntNarrowing.cpp
mlir/test/Dialect/Arith/int-narrowing.mlir