Back to Search Start Over

Loop Shifting for Loop Compaction

Authors :
Guillaume Huard
Alain Darte
Source :
Languages and Compilers for Parallel Computing ISBN: 9783540678588, LCPC
Publication Year :
2000
Publisher :
Springer Berlin Heidelberg, 2000.

Abstract

The idea of decomposed software pipelining is to decouple the software pipelining problem into a cyclic scheduling problem without resource constraints and an acyclic scheduling problem with resource constraints. In terms of loop transformation and code motion, the technique can be formulated as a combination of loop shifting and loop compaction. Loop shifting amounts to move statements between iterations thereby changing some loop independent dependences into loop carried dependences and vice versa. Then, loop compaction schedules the body of the loop considering only loop independent dependences, but taking into account the details of the target architecture. In this paper, we show how loop shifting can be optimized so as to minimize both the length of the critical path and the number of dependences for loop compaction. Both problems (and the combination) are polynomially solvable with fast graph algorithms, the first one by using an algorithm due to Leiserson and Saxe, the second one by designing a variant of minimum-cost flow algorithms.

Details

ISBN :
978-3-540-67858-8
ISBNs :
9783540678588
Database :
OpenAIRE
Journal :
Languages and Compilers for Parallel Computing ISBN: 9783540678588, LCPC
Accession number :
edsair.doi...........f153ca4bf083ec01195dfb955763e45f
Full Text :
https://doi.org/10.1007/3-540-44905-1_26