1. A method of region-level loop optimization, the method comprising: determining a candidate region of source code for region-level loop optimization, the candidate region comprising an outer loop and a plurality of inner loops separated by control code; and applying a region-level loop optimization to the candidate region.