It's highly doubtful that Savard will retire until the end of the 2016-17 season.
If he retires, the Bruins do not have to honour his contract.
What is far more likely to happen is for Boston to put Savard on the LTIR List.
Should that occur, while the Bruins have to pay his salary, it does not count against the cap (cap hit per season $4,007,143).
2011-12 Salary $7,000,000
2012-13 Salary $6,500,000
2013-14 Salary $5,000,000
2014-15 Salary $1,500,000
2015-16 Salary $525,000
2016-17 Salary $525,000