[mlir][Linalg] Fix load/store operations generated while lower loops when
authorMaheshRavishankar <ravishankarm@google.com>
Thu, 5 Mar 2020 01:03:07 +0000 (17:03 -0800)
committerMaheshRavishankar <ravishankarm@google.com>
Thu, 5 Mar 2020 01:04:30 +0000 (17:04 -0800)
commit755c050200bad608dffd376929a230cd5d9936d7
tree79a4bf10bfc178e45326dd645d37094b3232bfea
parentf708c823f06c7758b07967ca00e00600fb9e728b
[mlir][Linalg] Fix load/store operations generated while lower loops when
output has zero rank.

While lowering to loops, no indices should be used in the load/store
operation if the buffer is zero-rank.

Differential Revision: https://reviews.llvm.org/D75391
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp
mlir/test/Dialect/Linalg/loops.mlir