发明名称 Eliminate Maximum Operation in Loop Bounds with Loop Versioning
摘要 A method and computer program product 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.
申请公布号 US2009055815(A1) 申请公布日期 2009.02.26
申请号 US20070842253 申请日期 2007.08.21
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CHAN EDWIN
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址