Investors’ pursuit of the companies supplying key materials to the artificial intelligence build-out is powering an epic rally in shares of chip makers. Other companies caught in the frenzy include a 175-year-old glass manufacturer, a heavy machinery giant and Japan’s leading maker of toilets.