1. A method including: locating a nested first IF statement and a nested second IF statement, wherein (a) the first IF statement includes a first conditional code portion that includes a first condition expression and a first loop, (b) the second IF statement includes a second conditional code portion that includes a second condition expression and a second loop, and (c) the first and second IF statements are not nested within one another; determining whether the first conditional code portion includes a first function call; determining whether the second conditional code portion includes a second function call; determining whether the first condition expression and the second condition expression are based on a common condition; and fusing the first loop with the second loop based on determining the first conditional code portion does not include the first function call, determining the second conditional code portion does not include the second function call, and determining the first condition expression and the second condition expression are based on the common condition.