Polymorphic splitting
Andrew K. Wright, Suresh Jagannathan · ACM Transactions on Programming Languages and Systems · 1998
This article describes a general-purpose program analysis that computes global control-flow and data-flow information for higher-order, call-by-value languages. The analysis employs a novel form of polyvariance called polymorhic splitting that uses let-expressions as syntactic clues to gain precision. The information derived from the analysis is used both to eliminate run-time checks and to inline procedure. The analysis and optimizations have been applied to a suite of Scheme programs. Experimental results obtained from the prototype implementation indicate that the analysis is extremely precise and has reasonable cost. Compared to monovariant flow analyses such as 0CFA, or analyses based on type inference such as soft typing, the analysis eliminates significantly more run-time checks. Run-time check elimination and inlining together typically yield a 20 to 40% performance improvement for the benchmark suite, with some programs running four times as fast.
Cited by 60 works. doi:10.1145/271510.271523 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- A theory of type polymorphism in programming
- The Definition of Standard ML
- The Rapid Evaluation of Potential Fields in Particle Systems
- The principle type-scheme of an object in combinatory logic
- Compiling with Continuations
- Flow analysis and optimization of LISP-like structures
- The Principal Type-Scheme of an Object in Combinatory Logic
- Revised 4 report on the algorithmic language scheme
- Soft typing