Loop distribution and fusion with timing and code size optimization

Meilin Liu, Edwin H.M. Sha, Qingfeng Zhuge, Yi He, Meikang Qiu

Research output: Contribution to journalArticlepeer-review

3 Scopus citations

Abstract

In this paper, a technique that combines loop distribution with maximum direct loop fusion (LD-MDF) is proposed. The technique performs maximum loop distribution, followed by maximum direct loop fusion to optimize timing and code size simultaneously. The loop distribution theorems that state the conditions distributing any multi-level nested loop in the maximum way are proved. It is proved that the statements involved in the dependence cycle can be fully distributed if the summation of the edge weight of the dependence cycle satisfies a certain condition; otherwise, the statements should be put in the same loop after loop distribution. Based on the loop distribution theorems, algorithms are designed to conduct maximum loop distribution. The maximum direct loop fusion problem is mapped to the graph partitioning problem. A polynomial graph partitioning algorithm is developed to compute the fusion partitions. It is proved that the proposed maximum direct loop fusion algorithm produces the fewest number of resultant loop nests without violating dependence constraints. It is also shown that the resultant code size of the fused loops by the technique of loop distribution with maximum direct loop fusion is smaller than the code size of the original loops when the number of fused loops is less than the number of the original loops. The simulation results are presented to validate the proposed technique.

Original languageEnglish
Pages (from-to)325-340
Number of pages16
JournalJournal of Signal Processing Systems
Volume62
Issue number3
DOIs
StatePublished - Mar 2011
Externally publishedYes

Keywords

  • Code size
  • Embedded DSP
  • Graph partitioning
  • Loop distribution
  • Loop fusion

Fingerprint

Dive into the research topics of 'Loop distribution and fusion with timing and code size optimization'. Together they form a unique fingerprint.

Cite this