Predicting the effects of optimization on a procedure body
- 1 August 1979
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 14 (8) , 214-220
- https://doi.org/10.1145/872732.806972
Abstract
Practical application of procedure integration (inline expansion) as a program optimization requires some method for estimating the effects of subsequent optimization on the integrated procedure. A technique is described for predicting the code improvement that can be expected due to constant folding and test elision when a procedure call involving constant actual parameters is integrated. The technique is based on information collected during a single data flow analysis of each procedure body, and on execution frequency statistics for the procedure. This information can then be used to estimate the cost in code size and the benefit in execution speed of integrating each call to the procedure. The algorithm uses a syntax directed analysis technique suitable for structured programming languages without gotos.This publication has 5 references indexed in Scilit:
- Data types as valuesPublished by Association for Computing Machinery (ACM) ,1978
- Report on the programming language EuclidACM SIGPLAN Notices, 1977
- A new strategy for code generationPublished by Association for Computing Machinery (ACM) ,1977
- Optimization of structured programsSoftware: Practice and Experience, 1974
- A unified approach to global program optimizationPublished by Association for Computing Machinery (ACM) ,1973