Partial redundancy elimination for access path expressions
- 16 March 2001
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 31 (6) , 577-600
- https://doi.org/10.1002/spe.371
Abstract
Pointer traversals pose significant overhead to the execution of object‐oriented programs, since every access to an object's state requires a pointer dereference. Eliminating redundant pointer traversals reduces both instructions executed as well as redundant memory accesses to relieve pressure on the memory subsystem. We describe an approach to elimination of redundant access expressions that combines partial redundancy elimination (PRE) with type‐based alias analysis (TBAA). To explore the potential of this approach we have implemented an optimization framework for Java class files incorporating TBAA‐based PRE over pointer access expressions. The framework is implemented as a class‐file‐to‐class‐file transformer; optimized classes can then be run in any standard Java execution environment. Our experiments demonstrate improvements in the execution of optimized code for several Java benchmarks running in diverse execution environments: the standard interpreted JDK virtual machine, a virtual machine using ‘just‐in‐time’ compilation, and native binaries compiled off‐line (‘way‐ahead‐of‐time’). Overall, however, our experience is of mixed success with the optimizations, mainly because of the isolation between our optimizer and the underlying execution environments which prevents more effective cooperation between them. We isolate the impact of access path PRE using TBAA, and demonstrate that Java's requirement of precise exceptions can noticeably impact code‐motion optimizations like PRE. Copyright © 2001 John Wiley & Sons, Ltd.Keywords
This publication has 50 references indexed in Scilit:
- Type-based alias analysisACM SIGPLAN Notices, 1998
- Using static single assignment form to improve flow-insensitive pointer analysisACM SIGPLAN Notices, 1998
- Register promotion by sparse partial redundancy elimination of loads and storesACM SIGPLAN Notices, 1998
- A new algorithm for scalar register promotion based on SSA formACM SIGPLAN Notices, 1998
- Nesting of reducible and irreducible loopsACM Transactions on Programming Languages and Systems, 1997
- An orthogonally persistent JavaACM SIGMOD Record, 1996
- A safe approximate algorithm for interprocedural aliasingACM SIGPLAN Notices, 1992
- Making pure object-oriented languages practicalACM SIGPLAN Notices, 1991
- Constant propagation with conditional branchesACM Transactions on Programming Languages and Systems, 1991
- Global optimization by suppression of partial redundanciesCommunications of the ACM, 1979