As far as evolution is concerned, you've already had the kid - you passed on your genes. If you survive long enough to make sure your kid reaches maturity, that's all that matters there.
Evolution can't select for anything that happens significantly past the birth of your progeny.