The S&P 500 hit a new all-time high of 7519.12 on Tuesday as investors expressed optimism about a potential diplomatic resolution to the US-Iran conflict.