Beyond unimodular transformations

Document Type

Article

Publication Date

12-1-1995

Abstract

This paper presents an approach to modeling loop transformations using linear algebra. Compound transformations are modeled as integer matrices. The nonsingular linear transformations presented here subsume the class of unimodular transformations. The loop transformations included are the unimodular transformations-reversal, skewing, and permutation- and a new transformation, namely stretching. Nonunimodular transformations (with determinant ≥ 1) create "holes" in the transformed iteration space, rendering code generation difficult. We solve this problem by suitably changing the step size of loops in order to "skip" these holes when traversing the transformed iteration space. For the class of nonunimodular loop transformations, we present algorithms for deriving the loop bounds, the array access expressions, and the step sizes of loops in the nest. To derive the step sizes, we compute the Hermite normal form of the transformation matrix; the step sizes are the entries on the diagonal of this matrix. We then use the theory of Hessenberg matrices in the derivation of exact loop bounds for nonunimodular transformations. We illustrate the use of this approach in several problems such as the generation of tile sets and distributed-memory code generation. This approach provides a framework for optimizing programs for a variety of architectures. © 1995 Kluwer Academic Publishers.

Publication Source (Journal or Book title)

The Journal of Supercomputing

First Page

365

Last Page

389

This document is currently not available here.

Share

COinS