User blog comment:Jimeee/Skyrim 1.9 beta update adds Legendary difficulty and raises level cap (Updated Apr 8th)/@comment-124.183.78.59-20130326010641/@comment-67.177.107.19-20130326040221

You get refunded the exact number of perk points spent into that tree.