Remove unnecessary moves into registers.