IT stocks, including Tata Consultancy Services Ltd (TCS), Tech Mahindra Ltd and Infosys Ltd, led the gains as the reverse AI trade gathered pace.