Edge of Tomorrow

A soldier (Tom Cruise) who was killed in action gets caught up in a time loop, in which he repeatedly relives his last battle. However, the more times he fights, the closer he gets to discovering how to defeat the alien enemy.