I've been fortunate that my manager previously told me "if you're surprised at the performance review, I've failed at my job". That feels like the right approach - everyone should know their situation as soon as something starts going wrong, not suddenly at company-level layoffs.