Stock market predicts credit rating changes during financial crises, not CDS market.
Investors no longer rely on credit rating agencies during financial crises. Stock markets predict downgrades before they happen, but credit default swaps don't react to rating changes.