Edge of Tomorrow

A soldier fighting aliens gets to relive the same day over and over again, the day restarting every time he dies.