My bike came with X7 shifters, and an X9 rear derailleur. Over a couple of years, shifting deteriorated slowly but steadily. I replaced all the cables and housings (with SRAM slick) and realized some improvement. Shifting was still FAR from smooth and precise.
So I installed XT shifters (because I LOVED the XT brakes with which I replaced the Avids that came on the bike), and realized a significant improvement. But, I could not get the X9 RD to shift through the entire rear XTR cassette (that I put on months before, without incident). Even though I couldn't access 2 cogs on the cassette with the XT shifters (the 2 smallest or 2 biggest, depending on how I set it up -- I went from 3x9 to 3x7), the XT shifters still shifted much better than the X7's, with the X9 RD. I've got an XT rear derailleur coming next week that will (hopefully) shift through all 9 cogs, and restore my 3x9 setup.