Discussion is here: https://llvm.discourse.group/t/viewop-isnt-expressive-enough/991/9.
The fix is not the same as discussed in the thread. It instead partially support non-identity affine maps for the source memref. Currently, only static offset support is added.
if(!ShapedType::isDynamicOffsetOrStride(baseOffset))