Automatic discovery of parallelism: A tool and an experiment
Michael Burke, Ron Cytron, et al.
PPEALS 1988
Loop unrolling is a well known loop transformation that has been used in optimizing compilers for over three decades. In this paper, we address the problems of automatically selecting unroll factors for perfectly nested loops, and generating compact code for the selected unroll factors. Compared to past work, the contributions of our work include (i) a more detailed cost model that includes register locality, instruction-level parallelism and instruction-cache considerations; (ii) a new code generation algorithm that generates more compact code than the unroll-and-jam transformation; and (iii) a new algorithm for efficiently enumerating feasible unroll vectors. Our experimental results confirm the wide applicability of our approach by showing a 2.2x speedup on matrix multiply, and an average 1.08x speedup on seven of the SPEC95fp benchmarks (with a 1.2x speedup for two benchmarks). Larger performance improvements can be expected on processors that have larger numbers of registers and larger degrees of instruction-level parallelism than the processor used for our measurements (PowerPC 604). © 2001 Plenum Publishing Corporation.
Michael Burke, Ron Cytron, et al.
PPEALS 1988
Satish Chandra, Vijay Saraswat, et al.
PPoPP 2008
Kourosh Gharachorloo, Vivek Sarkar, et al.
LFP 1988
Jacob Harris, Vivek Sarkar
Journal of Parallel and Distributed Computing