>Being a star performer doesn't protect you from layoffs.
Generally speaking, they absolutely do. Even in scenarios where an entire org is being cut, star performers will be reassigned to other areas of the company beforehand.
It may sound brash but it'd take either a major failure in management or a failure in reputation-building and visibility for a star performer to be cut during these types of layoffs. That's not to say that good or even great engineers aren't at risk, but you're not going to find "10x-ers" being let go.