Points-to Analysis for Java with Applications for Loop Optimizations

In this paper, we present a pointer analysis that aims to enable the following optimizations for Java: loop-based dependence analysis in the presence of pointers and the identification of exception-free regions. The analysis computes a property called element-wise points-to (ewpt) mapping. An ewpt mapping summarizes precise points-to information for all instances of a pointer or all elements of an array of pointer type. This is done with the help of a single, compact representation. Such instance-wise and element-wise information is especially important for loop-based dependence analysis and for a language where multi-dimensional arrays axe implemented as arrays of pointers. We describe an iterative algorithm to compute ewpt mappings. We also present techniques to kill objects from ewpt mappings for destructive updates. The points-to algorithm was implemented and evaluated on a set of benchmark programs. We demonstrate that ewpt information can significantly improve the precision of dependence analysis. In many cases, the dependence analysis reports no false dependences due to array accesses. In addition, all redundant null-pointer checks on array element accesses can be removed.

By: Peng Wu, Paul Feautriert, David Paduas, Zehra Sura

Published in: RC22240 in 2002

LIMITED DISTRIBUTION NOTICE:

This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.

RC22240.pdf

Questions about this service can be mailed to reports@us.ibm.com .