[MLIR][GPU] Simplify memcpy of cast
authorWilliam S. Moses <gh@wsmoses.com>
Sat, 5 Jun 2021 01:27:15 +0000 (21:27 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Mon, 7 Jun 2021 18:00:13 +0000 (14:00 -0400)
commit00b6463b269f6815a8a110b9208f483e239ce1e2
tree70c43f0cad6aa0d48668aba0d1678022c3fa6c1d
parent85966df3aa64513851b88f82e9b586774c6db367
[MLIR][GPU] Simplify memcpy of cast

Introduce a simplification that allows memcpy of a cast to simply use the underlying op

Differential Revision: https://reviews.llvm.org/D103830
mlir/include/mlir/Dialect/GPU/GPUOps.td
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/test/Dialect/GPU/canonicalize.mlir [new file with mode: 0644]