Constraint-Based Register Allocation and Instruction Scheduling

Roberto Castañeda Lozano, Mats Carlsson, Frej Drejhammar, Christian Schulte

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract / Description of output

This paper introduces a constraint model and solving techniques for code generation in a compiler back-end. It contributes a new model for global register allocation that combines several advanced aspects: multiple register banks (subsuming spilling to memory), coalescing, and packing. The model is extended to include instruction scheduling and bundling. The paper introduces a decomposition scheme exploiting the underlying program structure and exhibiting robust behavior for functions with thousands of instructions. Evaluation shows that code quality is on par with LLVM, a state-of-the-art compiler infrastructure.
Original languageEnglish
Title of host publicationPrinciples and Practice of Constraint Programming
EditorsMichela Milano
Place of PublicationBerlin, Heidelberg
PublisherSpringer Berlin Heidelberg
Number of pages17
ISBN (Electronic)978-3-642-33558-7
ISBN (Print)978-3-642-33557-0
Publication statusPublished - 31 Dec 2012
Event18th International Conference on Principles and Practice of Constraint Programming - Québec City, Canada
Duration: 8 Oct 201212 Oct 2012
Conference number: 18

Publication series

NameLecture Notes in Computer Science (LNCS)
PublisherSpringer, Berlin, Heidelberg
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349


Conference18th International Conference on Principles and Practice of Constraint Programming
Abbreviated titleCP 2012
CityQuébec City
Internet address

Keywords / Materials (for Non-textual outputs)

  • Constraint Programming
  • Constraint Model
  • Register Allocation
  • Code Quality
  • Instruction Schedule


Dive into the research topics of 'Constraint-Based Register Allocation and Instruction Scheduling'. Together they form a unique fingerprint.

Cite this