South Korean stocks have erased the slide triggered by the Iran war, driven by a rally in chipmakers as escalating US–Iran tensions bring the artificial intelligence trade back into investor focus.