U.S. oil producer Devon Energy Corp reported a quarterly profit on Tuesday, compared with a year-ago loss, driven by cost cutting.