The University of Arizona
banner image

  Load Redundancy Elimination on Executable Code

Manel Fernández and Roger Espasa
Computer Architecture Department
Universitat Politècnica de Catalunya
Barcelona, Spain

Saumya Debray
Department of Computer Science
University of Arizona
Tucson, AZ 85721, USA

 

Abstract
Optimizations performed at link time or directly applied to final program executables have received increased attention in recent years. This paper discuss the discovery and elimination of redundant load operations in the context of a link time optimizer, an optimization that we call Load Redundancy Elimination (LRE). Our experiments show that between 50% and 75% of a program's memory references can be considered redundant because they are accessing memory locations that have been referenced less than 200-400 instructions away. We then present three profile-based LRE algorithms targeted at optimizing away these redundancies. Our results show that between 5% and 30% of the redundancy detected can indeed be eliminated, which translates into program speedups in the range of 3% to 8%. We also test our algorithm assuming different cache latencies, and show that, if latencies continue to grow, the load redundancy elimination will become more important.