The rally has been on the back of better-than-expected corporate earnings and expectations of tax realignment on equities. The Sensex had hit an all-time intra-day high of 40,312 on June 4 this year. HDFC twins, Infosys, ITC and L&T lifted the index. Infosys, up over 2.6 per cent, was the top gainer in the trade.