Stellar evolution in the upper Hertzsprung-Russell diagram