US PGA winner Rory McIlroy is to play in the BMW Masters in Shanghai instead of the Grand Slam of Golf in Bermuda.