No, that's not how it works. It is a marginal tax bracket. If you get in the higher bracket, it's only the new money that gets taxed at the higher rate, not your full salary.
It has absolutely nothing to do with your contribution to retirement accounts. You can invest more and contribute more to your tax free retirement accounts with a higher salary (up to a point) but even if you didn't, that wouldn't make a difference.