This was lifted by a record high in Taiwan Semiconductor Manufacturing Co. as investors bet on continued demand tied to AI.