Invention Grant
- Patent Title: Eliminating maximum/minimum operations in loop bounds
- Patent Title (中): 消除循环范围内的最大/最小运算
-
Application No.: US11842253Application Date: 2007-08-21
-
Publication No.: US08087012B2Publication Date: 2011-12-27
- Inventor: Edwin Chan
- Applicant: Edwin Chan
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Cantor Colburn LLP
- Agent Libby Toub
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
A technique is provided for eliminating maximum and minimum expressions within loop bounds are provided. A loop in a code is identified. The loop is determined to meet conditions, which require an upper loop bound and a lower loop bound to contain maximum and minimum expressions, loop-invariant operands, a predetermined size for a code size, and a total number of instructions to be greater than a predetermined constant. A profitability of loop versioning is determined based on a performance gain of a fast version of the loop, a probability of executing the fast version of the loop at runtime, and an overhead for performing loop versioning. A pair of lower loop bound and upper loop bound values resulting in a constant number is identified. A loop iteration value is checked to be a non-zero constant. Branches are identified, and loop versioning is performed to generate a versioned loop.
Public/Granted literature
- US20090055815A1 Eliminate Maximum Operation in Loop Bounds with Loop Versioning Public/Granted day:2009-02-26
Information query