|
ABSTRACT
In a compiling system that attempts to improve code for a whole program by optimizing across procedures, the compiler can generate better code for a specific procedure if it knows which variables will have constant values, and what those values will be, when the procedure is invoked. This paper presents a general algorithm for determining for each procedure in a given program the set of inputs that will have known constant values at run time. The precision of the answers provided by this method are dependent on the precision of the local analysis of individual procedures in the program. Since the algorithm is intended for use in a sophisticated software development environment in which local analysis would be provided by the source editor, the quality of the answers will depend on the amount of work the editor performs. Several reasonable strategies for local analysis with different levels of complexity and precision are suggested and the results of a prototype implementation in a vectorizing Fortran compiler are presented.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
AhUl 77
|
|
| |
Alle 74
|
F. E. Allen. Interprocedural data flow analysis. Proceeding8 IFIP Congre88 7g, North-Holland Publishing Co.: Amsterdam. 1974.
|
| |
AlKe 84
|
J.R. Allen and K. Keanedy. PFC: a program to convert Fortran to parallel form. Supercomputer6: Denigu and Application8 (K. Hwang, ed.). IEEE Computer Society Press, ~984.
|
 |
Ball 79
|
|
| |
Coop 83
|
|
 |
Coop 85
|
|
 |
CoKe 84
|
|
 |
CoKT 85
|
Keith D. Cooper , Ken Kennedy , Linda Torczon, The impact of interprocedural analysis and optimization on the design of a software development environment, Proceedings of the ACM SIGPLAN 85 symposium on Language issues in programming environments, p.107-116, June 25-28, 1985, Seattle, Washington, United States
|
| |
CoKT 86
|
K.D. Cooper, K. Kennedy and L. Torczon. Optimization of compiled code in the IRa programming environment. Proceeding8 of the Nineteenth Annual Hawaii International Conference on Systems Sciences. January, 1986.
|
| |
Dong 80
|
J. Dongarra. LINPACK working note ~3: FORTRAN BLAS timing. Technical Report ANI~80-24, Argonne National Laboratory, February 1980.
|
| |
DBMS 79
|
J. J. Dongarra, J. R. Bunch, C. B. Moler, and G. W. Stewart. LINPACK U~ers' Guide. SIAM, Philadelphia. 1979.
|
| |
HoKe 85
|
R. T. Hood and K. Kennedy. A programming environment for Fortran. Proceedings of the Eighteenth Annual Hawaii International Conference on Systems Sciences, 1985.
|
| |
KaUl 77
|
J. Kam and J. Ullman. Monotone data flow analysis frameworks. Acta lnformatica, 7. 1977.
|
| |
Kenn 78
|
K. Kennedy. Use-definition chains with applications. Jr. Computer Languages, 3(3). 1978.
|
| |
Kenn 81
|
K. Kennedy. A survey of data flow analysis techniques. Program Flow Analysis: Theory and Applications (S.S. Muchnick and N.D. Jones, eds.). Prentice-Hall. 1981. pp. 5-54.
|
 |
Kild 73
|
|
 |
Myer 81
|
|
| |
ReLe 82
|
J. H. Reif and H. R. Lewis. Symbolic evaluation and the global value graph. TR 37-82, Aiken Computation Laboratory, Harvard University. 1982.
|
 |
Sche 77
|
|
| |
Torc 85
|
|
 |
WeZa 85
|
|
CITED BY 46
|
|
V. Balasundaram , K. Kennedy , U. Kremer , K. McKinley , J. Subhlok, The parascope editor: an interactive parallel programming tool, Proceedings of the 1989 ACM/IEEE conference on Supercomputing, p.540-550, November 12-17, 1989, Reno, Nevada, United States
|
|
|
|
|
|
|
|
|
Michael Burke , Ron Cytron , Jeanne Ferrante , Wilson Hsieh , Vivek Sarkar , David Shields, Automatic discovery of parallelism: a tool and an experiment (extended abstract), ACM SIGPLAN Notices, v.23 n.9, p.77-84, Sept. 1988
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thomas Reps , Susan Horwitz , Mooly Sagiv, Precise interprocedural dataflow analysis via graph reachability, Proceedings of the 22nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.49-61, January 23-25, 1995, San Francisco, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inbal Ronen , Nurit Dor , Sara Porat , Yael Dubinsky, Combined static and dynamic analysis for inferring program dependencies using a pattern language, Proceedings of the 2006 conference of the Center for Advanced Studies on Collaborative research, October 16-19, 2006, Toronto, Ontario, Canada
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|