• Home
  • Search
  • Array Bounds Check Elimination for Java Based on Sparse Representation
  • Cite Icon1
  • https://doi.org/10.1109/sera.2009.11Copy DOI Icon

Array Bounds Check Elimination for Java Based on Sparse Representation

  • Jan 1, 2009
  • Keqiao Yang +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

As a type-safe program language, Java requires bounds checks of array accesses. Whenever an array element is accessed, a cmp (compare) instruction is executed to check whether the index value is within the valid bounds. Array bounds checks may prevent many useful optimizations because of precise exception. We present a new ABCE (Array Bounds Check Elimination) algorithm to eliminate redundant checks based on sparse representation for a Java static compiler. In contrast to other approaches performing in JVMs, we adhere to the design principle of the static compiler to optimize scientific Java applications. The algorithm is a light-weight algorithm working on an intermediate representation in Static Single Assignment form. It fully removes bounds checks if it can be proven that they never fail. Whenever possible, it moves bounds checks out of loops to reduce the total number of executed checks. If such a check fails, the executing program branches into the unmodified loop to preserve the exception semantics of Java. For the scientific SciMark 2.0 benchmark suite, this algorithm removes on average 76% of bounds check instructions. The evaluation shows a speedup near to the theoretical maximum for LU test case.

Similar Papers
  • Research Article
  • Citations12

Array bounds check elimination in the context of deoptimization

  • Feb 07, 2009
  • Science of Computer Programming
  • Thomas Würthinger +2
  • Conference Article
  • Citations51

Array bounds check elimination for the Java HotSpot#8482; client compiler

  • Jan 01, 2007
  • Thomas Würthinger +2
  • Conference Article
  • Citations8

Interpreting programs in static single assignment form

  • Jun 07, 2004
  • Jeffery Von Ronne +2
  • Conference Article
  • Citations153

Array SSA form and its use in parallelization

  • Jan 01, 1998
  • Kathleen Knobe +1
  • Research Article
  • Citations10

More precise construction of static single assignment programs using reaching definitions

  • Apr 06, 2020
  • Journal of Systems and Software
  • Abu Naser Masud +1
  • Conference Article
  • Citations1

Recovering the Memory Behavior of Executable Programs

  • Jul 15, 2010
  • Alain Ketterlin +1
  • Conference Article
  • Citations18

Optimizing translation out of SSA using renaming constraints

  • Jun 10, 2004
  • F Rastello +2
  • Research Article
  • Citations28

Optimal register sharing for high-level synthesis of SSA form programs

  • May 01, 2006
  • IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
  • P Brisk +3
  • Research Article
  • Citations5

A Practical Improvement to the Partial Redundancy Elimination in SSA Form

  • Sep 30, 2008
  • Journal of Computing Science and Engineering
  • Jong-Soo Park +1
  • Research Article
  • Citations16

Efficient accommodation of may-alias information in SSA form

  • Jun 01, 1993
  • ACM SIGPLAN Notices
  • Ron Cytron +1
  • Book Chapter
  • Citations14

RSSA: A Reversible SSA Form

  • Jan 01, 2016
  • Torben Ægidius Mogensen
  • Conference Article

Loop Splitting Optimization Via Semi-Invariance Analysis in Static Single Assignment Form

  • Apr 25, 2025
  • Lin Han +5
  • Book Chapter

Scalar Compiler Optimizations on the Static Single Assignment Form and the Flow Graph Y.N. Srikant

  • Sep 25, 2002
  • Y N Srikant +1
  • Conference Article
  • Citations23

A sparse algorithm for predicated global value numbering

  • May 17, 2002
  • Karthik Gargi
  • Research Article
  • Citations35

A Transformation Framework for Optimizing Task-Parallel Programs

  • Apr 01, 2013
  • ACM Transactions on Programming Languages and Systems
  • V Krishna Nandivada +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.