Rory McIlroy hoped he had saved his best for last as the battle for a $10 million (£6m) payday went down to the wire in Atlanta.