1. A method including: locating a first IF statement and a second IF statement, the first IF statement including a first conditional code portion that includes a first condition expression and a first loop, and the second IF statement including a second conditional code portion that includes a second condition expression and a second loop; 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.