Beyond induction variables
Michael Wolfe · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1992
Induction variable detection is usually closely tied to the strength reduction optimization. This paper studies induction variable analysis from a different perspective, that of finding induction variables for data dependence analysis. While classical induction variable analysis techniques have been used successfully up to now, we have found a simple algorithm based on the Static Single Assignment form of a program that finds all linear induction variables in a loop. Moreover, this algorithm is easily extended to find induction variables in multiple nested loops, to find nonlinear induction variables, and to classify other integer scalar assignments in loops, such as monotonic, periodic and wrap-around variables. Some of these other variables are now classified using ad hoc pattern recognition, while others are not analyzed by current compilers. Giving a unified approach improves the speed of compilers and allows a more general classification scheme. We also show how to use these variables in data dependence testing.
Cited by 106 works. doi:10.1145/143095.143131
Authors
References
- Compilers: Principles, Techniques, and Tools
- Depth-First Search and Linear Graph Algorithms
- Efficiently computing static single assignment form and the control dependence graph
- Automatic translation of FORTRAN programs to vector form
- Advanced compiler optimizations for supercomputers
- The Organization of Computations for Uniform Recurrence Equations
- Constant propagation with conditional branches
- Supernode partitioning
- Detecting equality of variables in programs
- Global value numbers and redundant computations