Partial Redundancy Elimination Driven by a Cost-Benefit Analysis

  • Authors:
  • R. Nigel Horspool;H. C. Ho

  • Affiliations:
  • -;-

  • Venue:
  • ICCSSE '97 Proceedings of the 8th Israeli Conference on Computer-Based Systems and Software Engineering
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

Partial redundancy elimination has become a major compiler optimization that subsumes various ad hoc code motion optimizations. However, partial redundancy elimination is extremely conservative, failing to take advantage of many opportunities for optimization. We describe a new formulation of partial redundancy elimination based on a cost-benefit analysis of the flowgraph. Costs and benefits are measured by the number of evaluations of an expression. For that reason, our technique requires estimates for the execution frequency of every edge in the flowgraph. The new technique is much more agressive, performing more code motion and thereby reducing the number of expression evaluations as compared to the standard optimization.