What is the expected effect of poverty alleviation efforts on existential risk?



E.g. What is the expected effect on existential risk of donating to one of GiveWell's top charities?

I've asked myself this question several times over the last few years, but I've never put a lot of thought into it. I've always just assumed that at the very least it would not increase existential risk.

Have any analyses been done on this?