If demand for software developers decreases due to AI, salaries are likely to decrease as well. Take the academic world for comparison, where supply of very smart people vastly exceeds the demand.
Academia for comparison doesn’t make money…maybe a better comparison is HFT? Plenty of very very smart people playing a zero sum game, yet their comp has only increased