Sigh...
https://duckduckgo.com/?q=diet+to+gain+weight&ia=web
Merriam Webster: (note ‘going on a diet)
Definition of diet
d: a regimen of eating and drinking sparingly so as to reduce one’s weight
going on a diet