PepsiCo reported better-than-expected quarterly profit, helped by higher sales at its Frito-Lay snack business, and said it would buy back shares worth up to $12 billion.

The company's stock, which has been under pressure from activist investor Nelson Peltz, was up more nearly 2 percent in early afternoon trading on Wednesday.