• DocumentCode
    1070754
  • Title

    Learning Heuristics for the Superblock Instruction Scheduling Problem

  • Author

    Russell, Tyrel ; Malik, Abid M. ; Chase, Michael ; Van Beek, Peter

  • Author_Institution
    Cheriton Sch. of Comput. Sci., Univ. of Waterloo, Waterloo, ON, Canada
  • Volume
    21
  • Issue
    10
  • fYear
    2009
  • Firstpage
    1489
  • Lastpage
    1502
  • Abstract
    Modern processors have multiple pipelined functional units and can issue more than one instruction per clock cycle. This places a burden on the compiler to schedule the instructions to take maximum advantage of the underlying hardware. Superblocks - a straight-line sequence of code with a single entry point and multiple possible exit points - are a commonly used scheduling region within compilers. Superblock scheduling is NP-complete, and is done suboptimally in production compilers using a greedy algorithm coupled with a heuristic. The heuristic is usually handcrafted, a potentially time-consuming process. In this paper, we show that supervised machine learning techniques can be used to semiautomate the construction of heuristics for superblock scheduling. In our approach, labeled training data were produced using an optimal superblock scheduler. A decision tree learning algorithm was then used to induce a heuristic from the training data. The automatically constructed decision tree heuristic was compared against the best previously proposed, handcrafted heuristics for superblock scheduling on the SPEC 2000 and MediaBench benchmark suites. On these benchmark suites, the decision tree heuristic reduced the number of superblocks that were not optimally scheduled by up to 38 percent, and led to improved performance on some architectural models and competitive performance on others.
  • Keywords
    learning (artificial intelligence); pipeline processing; processor scheduling; MediaBench; SPEC 2000; constraint satisfaction; decision tree learning; greedy algorithm; pipelined processing; straight-line sequence; superblock instruction scheduling problem; superblock scheduling; supervised machine learning; Pipeline processors; compilers; constraint satisfaction.; heuristics design; machine learning;
  • fLanguage
    English
  • Journal_Title
    Knowledge and Data Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    1041-4347
  • Type

    jour

  • DOI
    10.1109/TKDE.2009.17
  • Filename
    4752820