Predicated Partial Redundancy Elimination using a Cost Analysis

2003 ◽  
Vol 13 (04) ◽  
pp. 525-536
Author(s):  
Bernhard Scholz ◽  
Eduard Mehofer ◽  
Nigel Horspool

Partial redundancy elimination (PRE) is a key technology for modern compilers. However traditional approaches are conservative and fail to exploit many opportunities for optimization. New PRE approaches which greatly increase the number of eliminated redundancies have been developed. However, they either cause the code size to explode or they cannot handle statements with side-effects. In this paper we describe a predicated partial redundancy elimination (PPRE) approach which can potentially remove all partial redundancies. To avoid performance overheads caused by predication, PPRE is applied selectively based on a cost model. The cost analysis presented in the paper utilizes probabilistic data-flow information to decide whether PPRE is profitable for each instance of a partially redundant computation. Refinements of the basic PPRE transformation are described in detail. In contrast to some other approaches our transformation is strictly semantics preserving.

1994 ◽  
Vol 29 (6) ◽  
pp. 159-170 ◽  
Author(s):  
Preston Briggs ◽  
Keith D. Cooper

1999 ◽  
Vol 21 (3) ◽  
pp. 627-676 ◽  
Author(s):  
Robert Kennedy ◽  
Sun Chan ◽  
Shin-Ming Liu ◽  
Raymond Lo ◽  
Peng Tu ◽  
...  

2001 ◽  
Vol 31 (6) ◽  
pp. 577-600 ◽  
Author(s):  
Antony L. Hosking ◽  
Nathaniel Nystrom ◽  
David Whitlock ◽  
Quintin Cutts ◽  
Amer Diwan

Sign in / Sign up

Export Citation Format

Share Document