A method and system of modifying instructions forming a loop is provided.
A method of modifying instructions forming a loop includes modifying
instructions forming a loop including: determining static and dynamic
characteristics for the instructions; selecting a modification factor for
the instructions based on a number of separate equivalent sections
forming a cache in a processor which is processing the instructions; and
modifying the instructions to interleave the instructions in the loop
according to the modification factor and the static and dynamic
characteristics when the instructions satisfy a modification criteria
based on the static and dynamic characteristics.