Revomes useless instructions