A Wall Street analyst upgraded Advanced Micro Devices to a buy rating after 10 years on Tuesday, highlighting its growing market share, a strong portfolio of computer chips to rival that of Intel and a relatively cheap stock price.