Youtube is not permitted in China; neither is Facebook. I don't see software development of these products moving to China. Google has had other issues with China as well.
Russia is similarly authoritarian, Africa lacks in infrastructure, Latin America has various nationalisms that are coming to the fore, Canada lacks the population. People have predicted software would leave the US for India for over 30 years; hasn't happened yet.
There is a reason things are the way they are. Changes would be against inertia.
Also, more fundamentally, patents regulate target markets, not countries of origin. If a company is based in a no-software-patents jurisdiction, it is still affected by them once it tries to serve markets that have software patents.