It is preferable to eat for the sake of davening rather than to daven for the sake of eating.

אז עס איז גלייכער צו עסען צוליב דאוונען איידער דאוונען צוליב עסען
Shiurim in this topic
1611. Acknowledgment of Gift, Publishing Excerpts, and Guidance on Morning Bread אישור תשורה, פרסום קטעים, והדרכה על פת שחרית
1660. Eating Mezonos Before Davening for Health and Focus אכילת מזונות לפני תפילה בשביל בריאות וריכוז