Patents
US 8,087,012 B2#30141395 Most CitedActiveUnited States (USPTO)Utility

Eliminating maximum/minimum operations in loop bounds

3Forward Citations (#30141395 Global)
0.2/yrCitation Velocity (#32875247 Global)
1.24Citation PageRank (#30490694 Global)
21Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 3.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for eliminating maximum and minimum expressions within loop bounds, the method comprising: identifying an unmodified loop in a code; determining whether the unmodified loop in the code meets conditions to be identified as a candidate for loop versioning, wherein meeting the conditions for the unmodified loop comprises: determining that an upper loop bound and a lower loop bound of the unmodified loop contain maximum and minimum expressions; determining that operands in the maximum and minimum expressions are loop-invariant in the unmodified loop, the operands being loop-invariant rela

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (21)

PatentTitleYearCitations
US 5,781,777 AOptimization method for computation partitioning oriented to a distributed memory199826
US 5,842,021 AOptimizer199822
US 6,341,371 B1System and method for optimizing program execution in a computer system2002135
US 6,343,375 B1Method for optimizing array bounds checks in programs200272
US 6,507,947 B1Programmatic synthesis of processor element arrays2003227
US 2003097652 A1Compiler apparatus and method for optimizing loops in a computer program—64
US 2003208749 A1Method and apparatus for multi-versioning loops to facilitate modulo scheduling—16
US 6,665,864 B1Method and apparatus for generating code for array range check and method and apparatus for versioning200337
US 6,745,384 B1Anticipatory optimization with composite folding2004154
US 2004221281 A1Compiler apparatus, compiling method, and compiler program—29
US 6,938,249 B2Compiler apparatus and method for optimizing loops in a computer program200548
US 2005283773 A1Framework for efficient code generation using loop peeling for SIMD loop code with multiple misaligned statements—73
US 6,988,266 B2Method of transforming variable loops into constant loops200614
US 6,993,757 B2Method and apparatus for multi-versioning loops to facilitate modulo scheduling200611
US 2006048119 A1Method and system for auto parallelization of zero-trip loops through induction variable substitution—21
US 7,086,046 B2Method and apparatus for displaying compiler-optimizated code200631
US 2007169058 A1Method and system for versioning codes based on relative alignment for single instruction multiple data units—10
US 7,386,842 B2Efficient data reorganization to satisfy data alignment constraints200829
US 7,395,531 B2Framework for efficient code generation using loop peeling for SIMD loop code with multiple misaligned statements200836
US 7,779,399 B2System and method for securing web application code and verifying correctness of software201031
US 7,856,627 B2Method of SIMD-ization through data reshaping, padding, and alignment201012

Non-Patent Literature (5)

  • "Array Bounds Check Elimination for the Java HotSpot(TM) Client Compiler", Thomas Würthinger,[online], 2007, pp. 125-133,[Retrieved from Internet on Jul. 22, 2011], .
  • "Array Bounds Check Elimination for the Java HotSpot™ Client Compiler", Thomas Würthinger,[online], 2007, pp. 125-133,[Retrieved from Internet on Jul. 22, 2011], <URL: http://delivery.acm.org/10.1145/1300000/1294343/p125-wurthinger.pdf>.
  • "Design and exploitation of a high-performance SIMD floating-point unit" , Catterfee S et al.[online], Mar. 2005,pp. 377-391, retrieved from Internet on Jul. 22, 2011 .
  • "Design and exploitation of a high-performance SIMD floating-point unit" , Catterfee S et al.[online], Mar. 2005,pp. 377-391, retrieved from Internet on Jul. 22, 2011 <URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5388790>.
  • "Efficient and Effective Array Bound Checking", Thi Viet Nganguyen et al., [online], 2005, pp. 527-570, Retrived from Internet on Jul. 22, 2011, .