Invention Grant
- Patent Title: Loop branch reduction
-
Application No.: US14953688Application Date: 2015-11-30
-
Publication No.: US09600254B1Publication Date: 2017-03-21
- Inventor: Yaoqing Gao , Archana Ravindar
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Gregory M. Nordstrom
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45 ; G06F9/30

Abstract:
A method for reducing loop branches comprises analyzing an intermediate code to identify a candidate loop; analyzing the candidate loop to identify a candidate conditional statement containing at least one mutable operand; and determining if the computation in the candidate conditional statement is monotonic. The method further comprises calculating initial and final values of the mutable operand and generating a first version of the candidate loop which does not contain the candidate conditional statement and which is configured to be executed if the initial and final values of the mutable operand satisfy a range check. The method also comprises generating a second version of the candidate loop which contains the candidate conditional statement and which is configured to be executed if at least one of the initial and final values of the mutable operand does not satisfy the range check.
Information query