A valve performance controller for use in an engine that performs ignition
timing retardation control to prevent knocking. The controller variably
controls valve performance of an intake valve in accordance with an
operation state of the engine. The controller corrects a control target
so that the compression end temperature of a combustion chamber decreases
when a retardation amount of the ignition timing obtained through the
retardation control is greater than a predetermined value. The correction
is performed only when the engine performance degradation that would
occur when the ignition timing is retarded in a state in which the
control target is uncorrected is predicted to be greater than the engine
performance degradation that would occur when the control target is
corrected.