A method of operating an engine for a vehicle includes operating the cylinder to achieve controlled autoignition of an air and a fuel mixture within the cylinder. During a transient condition, such as a gear change, an exhaust throttle is adjusted to maintain controlled autoignition within the cylinder. In this way, it is possible to sustain autoignition operation throughout the gear change.