| Identifying loops in almost linear time |
| Full text |
Pdf
(207 KB)
|
| Source
|
ACM Transactions on Programming Languages and Systems (TOPLAS)
archive
Volume 21 , Issue 2 (March 1999)
table of contents
Pages: 175 - 188
Year of Publication: 1999
ISSN:0164-0925
|
|
Author
|
|
G. Ramalingam
|
IBM T. J. Watson Research Center, Yorktown Heights, NY
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 7, Downloads (12 Months): 74, Citation Count: 6
|
|
|
ABSTRACT
Loop identification is an essential step in performing various loop optimizations and transformations. The classical algorithm for identifying loops is Tarjan's interval-finding algorithm, which is restricted to reducible graphs. More recently, serveral people have proposed extensions to Tarjan's algortihm to deal with irreducible graphs. Havlak presents one such extension, which constructs a loop-nesting forest for an arbitrary flow graph. We show that the running time of this algorithm is quadratic in the worst-case, and not almost linear as claimed. We then show how to modify the algorithm to make it run in almost linear time. We next consider the quadratic algorithm presented by Sreedhar et al. which constructs a loop-nesting forest different from the one constructed by Havlak algorithm. We show that this algorithm too can be adapted to run in almost linear time. We finally consider an algorithm due to Steensgaard, which constructs yet antoher loop-nesting forest. We show how this algorithm can be made more efficient by borrowing ideas from the other algorithms discussed earlier.
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.
| |
1
|
Alfred V. Aho , Ravi Sethi , Jeffrey D. Ullman, Compilers: principles, techniques, and tools, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1986
|
| |
2
|
|
 |
3
|
|
 |
4
|
|
| |
5
|
RAMALINGAM, G. 1999. On loops, dominators, and dominance frontiers. Tech. Rep. RC21513, IBM Research Division. June.
|
 |
6
|
|
| |
7
|
STEENSGAARD, B. 1993. SequentiMizing program dependence graphs for irreducible programs. Tech. Rep. MSR-TR-93-14, Microsoft Research, Redmond, Wash. Oct.
|
| |
8
|
TARJAN, R. E. 1974. Testing flow graph reducibility. J. Comput. Syst. Sci. 9, 355-365.
|
 |
9
|
|
| |
10
|
|
REVIEW
"Herbert G. Mayer : Reviewer"
Ramalingam extends the state of the art of loop identification in
control flow graphs, whose vertices are basic blocks. The reference
point is the classical interval-finding algorithm for identifying loops,
published by Tarjan in 1974. Explain
more...
|