A man convicted of killing a 4-year-old girl then smoking meth with the girl's mother will spend the rest of his life in prison.