Back to search

McGill University

Register allocation for optimal loop scheduling

Abstract

dc:description.abstract

One of the major challenges in designing optimizing compilers, especially for scientific computation, is to take advantage of the parallelism in loops in order to obtain maximum speedup on parallel computer architectures. Optimal loop scheduling is therefore one of the most important topics studied by many computer scientists. However how to allocate minimum number of registers to support optimal loop scheduling for parallel architectures is less understood. In this thesis, we propose a simultaneous scheduling and register allocation approach for a parallelizing compiler, which will find one among all the time-optimal periodic schedules that uses minimum amount of registers. We prove that the general problem of finding such an optimal scheduling together with register allocation is NP-complete. Then we propose a practical approach to divide the register allocation problem into two steps. The first step solves a minimum buffer allocation problem, which will find a time-optimal periodic schedule using minimum number of buffers. We give a polynomial time algorithm to solve this problem. The second step analyzes the live ranges of the variables and uses coloring algorithms to reduce the register requirements by sharing. The algorithm has been implemented and used to test selected loops on benchmark programs. Testing results are reported in this thesis. In order to allocate enough memory spaces to support optimal dynamic schedules, we propose a cycle balancing scheme that allocates buffers to the arcs of the dataflow graph representing a loop, so that it can allow a loop being scheduled dynamically to achieve maximum speedup. We show how to formulate the problem into an integer programming problem. Practical polynomial time solution algorithms are given.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Grantor dc:publisher
McGill University
Year dc:date.issued
1993

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ning, Qi

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
893974728
Dc Identifier Other
hyrax:bv73c2090

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Ning, Qi. Register allocation for optimal loop scheduling. McGill University, 1993. https://doi.org/10.82308/39005