If a Pokemon used Swords Dance move and it faints, the boost's effect will dissapear (But if you Baton Pass to a Pokemon and then back to the Pokemon that used Swords Dance, the effect will still work)
In other words, no. (PS. It's not died, it's FAINT.)