The S&P 500 has advanced to all-time highs this year due to artificial intelligence, as well as easing pricing pressures.