The population is not predicted to decline until after it peaks at 10.4b in 2087. This is the WPP "Medium" model which has slightly underpredicted population growth in the past few years.
The global population will continue to rise past 2050, long past the point it could have ever helped anything to do with global warming.