I guess it depends on the recipe/beer style, but in most cases it would be based on water profile. I add a small amount (1/8 tsp) of NaCl along with Gypsum to my boil for certain beers in which I want to bring out the hop bitterness/flavor a little. But it is simply compensating for the fact that I have very soft (well) water with low mineral content. If I had medium/hard water, I wouldn't add anything. If you do decide to add salt, it needs to be non-iodized. Regular table salt is iodized and some salts have anti-caking agents added. I use canning salt which is just NaCl.