IIRC, D&D said something along the lines of HD from class levels + CR from Base Creature* + Deity rank = CR
Most of the deities in D&D where CR 0 from the base creatures. But D&D said that IF players kill a deity they should gain a level, no matter their level.