Download PDF

Languages, Compilers, and Tools for Embedded Systems - LCTES, Date: 2003/06/11 - 2003/06/13, Location: San Diego, California

Publication date: 2003-01-01
Volume: 38 Pages: 24 -
ISBN: 1-58113-647-1 ISSN: 0362-1340
Publisher: ACM Press

Proceedings of the 2003 ACM SIGPLAN Conference on Languages, Compilers and Tools for Embedded Systems (LCTES'03)

Author:

Vanbroekhoven, Peter
Janssens, Gerda ; Bruynooghe, Maurice ; Corporaal, Henk ; Catthoor, Francky ; Mueller, F ; Kremer, U

Keywords:

Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, algorithms, languages, copy propagation, optimization, single assignment, arrays, Software Engineering

Abstract:

The focus of this paper is on a data flow-transformation called advanced copy propagation. After an array is assigned, we can, under certain conditions, replace a read from this array by the righthand side of the assignment. If so, the intermediate assignment can be skipped. In case it becomes dead code, it can be eliminated. Where necessary we distinguish between the different elements of arrays as well as the different runtime instances of statements, allowing us to do propagation over global loop and condition scopes. We have formalized two basic operations: non-recursive propagation that operates on two statements and recursive propagation that operates on one statement. A global algorithm uses these two operations to do propagation on code involving any number of statements. Running our prototype implementation on some multimedia kernels shows that we can get a decrease in memory acesses between 22% and 43%.