Fix handling of dead PHI nodes.