| CPC G06F 8/443 (2013.01) | 25 Claims |

|
1. A computer implemented method for merging loops, comprising:
identifying, by a number of processor units, loops in computer code, wherein the loops are sequences of instructions that are repeated until conditions for the loops are reached;
creating, by the number of processor units, a tree comprising nodes that represent the loops and edges that represent relationships between nodes;
analyzing, by the number of processor units, the tree to identify a pair of candidate loops from sibling nodes; and
creating, by the number of processor units, a new loop from the pair of candidate loops with an expanded iteration space based on iteration spaces for the pair of candidate loops in response to the pair of candidate loops being eligible for merging.
|