fir.convert of memref to memref can potentially arise due to a chain of fir.convert between fir pointer types which get collapsed into a memref to memref cast. Handle this as if we first convert to a pointer and then convert the pointer to a memref.
fir.convert of memref to memref can potentially arise due to a chain of fir.convert between fir pointer types which get collapsed into a memref to memref cast. Handle this as if we first convert to a pointer and then convert the pointer to a memref.