Nothing Special   »   [go: up one dir, main page]

Skip to main content

Loop Tree and Induction Variables

  • Chapter
  • First Online:
SSA-based Compiler Design
  • 1114 Accesses

Abstract

Induction variables refer to a wide class of inductive definitions, where the sequence of values taken by a variable follows a regular pattern. The typical case is that of a loop counter. More generally, induction variables are associated with affine, geometric, or otherwise statically predictable progressions in loops. The purpose of the induction variable analysis is to provide a characterization of such sequences. There are numerous applications, from the detection of parallel loops to optimizations such as loop-invariant code motion, strength reduction, eliminating dependencies, and evaluating the number of iterations of a while loop. This chapter focuses particularly on the analysis and classification of induction variables in the presence of complex, low-level control flow (gotos, multiple loop exits, etc.). It describes the algorithm underlying the analysis of “scalar evolutions” in the GCC and LLVM compilers.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

eBook
USD 15.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 15.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    To simplify the discussion, we consider the original program to be free of side effect instructions.

  2. 2.

    Note, however, that the computation of closed-form expressions is not required for dependence testing itself [309].

References

  1. Bachmann, O., Wang, P. S., & Zima, E. V. (1994). Chains of recurrences—A method to expedite the evaluation of closed-form functions. In Proceedings of the International Symposium on Symbolic and Algebraic Computation (pp. 242–249).

    Google Scholar 

  2. Banerjee, U. (1988). Dependence analysis for supercomputing. Alphen aan den Rijn: Kluwer Academic Publishers.

    Book  Google Scholar 

  3. Kislenkov, V., Mitrofanov, V., & Zima, E. V. (1998). Multidimensional chains of recurrences. In Proceedings of the International Symposium on Symbolic and Algebraic Computation (pp. 199–206).

    Google Scholar 

  4. Pugh, W. (1991). Uniform techniques for loop optimization. In Proceedings of the International Conference on Supercomputing. ICS ’91 (pp. 341–352).

    Google Scholar 

  5. Zima, E. V. (2001). On computational properties of chains of recurrences. In Proceedings of the International Symposium on Symbolic and Algebraic Computation (pp. 345–352).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Albert Cohen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Pop, S., Cohen, A. (2022). Loop Tree and Induction Variables. In: Rastello, F., Bouchez Tichadou, F. (eds) SSA-based Compiler Design. Springer, Cham. https://doi.org/10.1007/978-3-030-80515-9_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-80515-9_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-80514-2

  • Online ISBN: 978-3-030-80515-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics