[mlir] [VectorOps] Correctly account for rank-0 affine-map result in vector.contract
authoraartbik <ajcbik@google.com>
Wed, 11 Mar 2020 21:26:00 +0000 (14:26 -0700)
committeraartbik <ajcbik@google.com>
Wed, 11 Mar 2020 23:05:49 +0000 (16:05 -0700)
commit27dfb2257a0bbd11be8a86fa5894f1091481694b
tree9a17ab65e1324e5e43348050c7c1a51612182781
parent70c0a9675dcaeb74a114a129f3d998bd6dee926f
[mlir] [VectorOps] Correctly account for rank-0 affine-map result in vector.contract

Summary:
Now that, thanks to ntv, we have the ability to parse and represent an affine
map with rank-0 results, viz. (i,j) -> (), we can pay off some engineering debt
in special casing the verification of such affine maps in dot-product flavored
vector.contract operations.

Reviewers: nicolasvasilache, andydavis1, rriddle

Reviewed By: nicolasvasilache

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76028
mlir/lib/Dialect/VectorOps/VectorOps.cpp
mlir/lib/Dialect/VectorOps/VectorTransforms.cpp