I was asked recently "what is the practice when a boy is born either stillborn or dies shortly after his birth? Is he to be circumcised?"
The simple answer is that it is up to the parents and what they want to have done. What follows is a more detailed analysis of the sources that address this topic, and what rabbis through the centuries had to say about it.