You want to carry all the speed you can up a hill. Don't slow yourself just to downshift and don't downshift too soon. Once on the hill and speeds start dropping, just momentarily ease up on the pedals to allow for quick downshifts as needed. Work through the cassette between shifting the rings to keep your chain line happy.