Merge "Skip the memcpy if src/dst are the same."