It depends on the size of the hill. I size up the hill as I approach. If it is only a short climb, I dont even shift down, I just power up the hill. IMO it just makes your legs stronger.
If it looks like a long hill I shift down to a gear that I feel from experience I can spin to the top, that is what I do.