The CNN Money Fear and Greed index showed an improvement in the overall market sentiment, while the index remained in the "Fear" zone on Tuesday.

U.S. stocks settled higher on Tuesday, with the Nasdaq Composite gaining more than 1% during the session amid gains in chipmakers.

Micron Technology Inc.

(NASDAQ:MU) shares surged more than 12% as investors kept their focus on corporate earnings and looked past a 10th straight day of U.S.-Iran hostilities.

On the earnings front, 3M (NYSE:MMM) shares jumped over 7% after the company reported upbeat second-quarter earnings.