[mlir][Linalg] Use subview instead of linalg.slice in Promotion.cpp
authorNicolas Vasilache <ntv@google.com>
Wed, 8 Apr 2020 03:49:08 +0000 (23:49 -0400)
committerNicolas Vasilache <ntv@google.com>
Wed, 8 Apr 2020 03:52:31 +0000 (23:52 -0400)
commit3cb1f35df2a560d5a8ce2047b87cba8e3c904170
tree0200da28d7bd03c8db62b5b1e03e6ee8199985da
parent530377018f624eadb8c07650511bbb9ca63608de
[mlir][Linalg] Use subview instead of linalg.slice in Promotion.cpp

This revision removes the reliance of Promotion on `linalg.slice` which is meant
for the rank-reducing case.

Differential Revision: https://reviews.llvm.org/D77676
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
mlir/test/Dialect/Linalg/promote.mlir