Optimize mov sequence when applicable.