1. A method comprising: identifying, by a controller, loop information corresponding to a plurality of loop instructions; storing the loop instructions into a queue; counting a loop iteration based on the identified loop information; determining whether a last iteration of the loop instructions is completed; and replaying the loop instructions from the queue for execution until the last iteration is completed.