It is illegal everywhere in the US. Talking about compensation is protected by the National Labor Relations Act.
When has something being illegal stopped a company from doing something that could save and/or make it more money?
When the penalty of a lawsuit outweighs the money gained from such an action.
In many jurisdictions, this is illegal.