Skip to main content

Perfect Loop Nests

  • Chapter
Dependence Analysis

Part of the book series: Loop Transformation for Restructuring Compilers ((LTRC,volume 3))

  • 110 Accesses

Abstract

In Chapter 2, we gave a detailed introduction to the concepts and techniques of dependence analysis using a single loop as the model. In Chapter 3, we showed how things can become complicated very quickly when there are two loops to deal with. The model for this chapter is a perfect nest of an arbitrary number of loops. Our goal is to properly formulate the linear dependence problem in the context of such a program. We will not discuss methods of solution in this chapter except in some special cases (Section 4.6) and examples. Matrix notation becomes almost a necessity at this point; without that, we run the risk of drowning in a sea of subscripts. The reader should keep on hand a double loop of the form

$$ \begin{gathered} L_1 :do I_1 = p_{10} ,q_{10} ,\theta _1 \hfill \\ L_2 :do I_2 = p_{20} + p_{21} I_1 ,q_{20} + q_{21} I_1 ,\theta _2 \hfill \\ H(I_1 ,I_2 ) \hfill \\ enddo \hfill \\ enddo \hfill \\ \end{gathered} $$

where p10, q10, p20, p21, q20, and q21 are integer constants, and try to understand the results and notation of this chapter first in terms of that particular perfect nest. Note that in Chapter 3, we wrote p1 for p10, and q1 for q10.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 1997 Kluwer Academic Publishers

About this chapter

Cite this chapter

(1997). Perfect Loop Nests. In: Dependence Analysis. Loop Transformation for Restructuring Compilers, vol 3. Springer, Boston, MA. https://doi.org/10.1007/978-0-585-28122-3_4

Download citation

  • DOI: https://doi.org/10.1007/978-0-585-28122-3_4

  • Publisher Name: Springer, Boston, MA

  • Print ISBN: 978-0-7923-9809-7

  • Online ISBN: 978-0-585-28122-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics