A new viewpoint on code generation for directed acyclic graphs

  • Authors:
  • S. Liao;K. Keutzer;S. Tjiang;S. Devadas

  • Affiliations:
  • Synopsys, Inc.;Synopsys, Inc.;Synopsys, Inc.;Massachusetts Institute of Technology

  • Venue:
  • ACM Transactions on Design Automation of Electronic Systems (TODAES)
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a new viewpoint on code generation for directed acyclic graphs (DAGs). Our formulation is based on binate covering, the problem of satisfying, with minimum cost, a set of disjunctive clauses, and can take into account commutativity of operators and of the machine model. An important contribution of this work is a set of necessary and sufficient conditions for a valid schedule to be derived, based on the notion of worms and worm-partitions. This set of conditions can be compactly expressed with clauses that relate scheduling to code selection. For the case of one-register machines, we can derive clauses that lead to generation of optimal code for the DAG. Recent advances in exact binate covering algorithms allows us to use this strategy to generate optimal code for large basic blocks. The optimal code generated by our algorithm results in significant reductions in overall code size.