[mlir][vector] add pattern to cast away leading unit dim for elementwise op
authorthomasraoux <thomasraoux@google.com>
Thu, 6 May 2021 23:37:47 +0000 (16:37 -0700)
committerthomasraoux <thomasraoux@google.com>
Fri, 7 May 2021 14:54:09 +0000 (07:54 -0700)
commita970e69d6b62d60c4c222e2a4be0a73999c97651
treee0bb00a8ed1ab9de23a4a0cc4d42d3fedaf14db5
parent565ee6afc707d5744d0ec90936f0c0564c1acf69
[mlir][vector] add pattern to cast away leading unit dim for elementwise op

Differential Revision: https://reviews.llvm.org/D102034
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/Dialect/Vector/vector-transforms.mlir