Eliminate redundant copy