[mlir] Fold memref.dim of OffsetSizeAndStrideOpInterface outputs
authorTres Popp <tpopp@google.com>
Tue, 25 May 2021 09:35:14 +0000 (11:35 +0200)
committerTres Popp <tpopp@google.com>
Tue, 25 May 2021 10:16:10 +0000 (12:16 +0200)
commit9ccdc2e23be18eca0b09f055fd17115c0366166c
tree35bd58880246a8a7e0d36df05fd9ae869da8df24
parent536447eb203c3f096d8d4d451d609ef7357c9c43
[mlir] Fold memref.dim of OffsetSizeAndStrideOpInterface outputs

This previously handled memref::SubviewOp, but this can be extended to
all ops implementing the interface.

Differential Revision: https://reviews.llvm.org/D103076
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/test/Dialect/MemRef/canonicalize.mlir