Shares of Taiwan Semiconductor Manufacturing surged on Friday after regulators in that country eased up on rules governing how much locals can invest in the maker of artificial-intelligence chips.