TSMC is already planning multiple factories in the US, India,etc... So is Intel. Raw materials are what are most concerning. Either way, it would be bad for the economy but war is profitable and war time powers can bend a lot of rules/companies.
The vast majority of TSMC manufacturing will still be in Taiwan. The US fabs are mostly for national defense products that legally need to be completely domestically sourced from what I can tell.