An employee adjusts bottles of Bud Light brand beer at an Anheuser-Busch InBev NV facility in Virginia, U.S., on August 8, 2018.

Investors should buy shares of AB InBev — the world's largest beer company — because a recent refinancing will lighten the company's massive debt burden, RBC Capital Markets said Tuesday.

Analyst James Edwardes Jones named AB InBev a top pick, upgrading it from outperform. He also hiked his 2019 and 2020 earnings per share estimates.

AB InBev's U.S.-listed shares slipped 0.2 percent Tuesday to $73.50.

"The dangers of AB InBev's indebtedness have been overstated," Jones wrote in a note to clients. "We think the level of debt is comfortably under control given AB InBev's relatively non-cyclical nature, so it makes sense to think about valuation in terms of [price-to-earnings] (cheap vs. the sector) rather than [enterprise value]/EBITDA (relatively expensive)."

AB InBev's debt ballooned to around $100 billion after it acquired rival brewer SABMiller in 2016. AB InBev took out a record $75 billion loan to buy SABMiller.

On Jan. 10, AB InBev issued $15.5 billion in corporate bonds to pay off parts of the debt due between 2021 and 2024 as well as 2026.

"The recent refinancing was sensible," Jones said. "It has replaced peaks of debt repayment with a smoother schedule which, at current exchange rates, should be doable from free cash flow, while significant appreciation in the US$ would be manageable."

AB InBev lost 41 percent of its value last year amid concerns over the company's ability to repay its gargantuan debt as well as declining beer sales. The Beer Purchasers' Index, a metric used by the National Beer Wholesalers Association to track beer purchases, fell to 47 in December from 55 in the year-earlier period.

—CNBC's Michael Bloom contributed to this report.

Subscribe to CNBC on YouTube.