file.pdf (233.18 kB)
Download file

Inter-Iteration Scalar Replacement in the Presence of Conditional Control-Flow

Download (233.18 kB)
journal contribution
posted on 01.09.2007, 00:00 authored by Mihai Budiu, Seth C. Goldstein
A large class of multimedia programs for embedded systems manipulate data represented as dense matrices. In this paper we revisit the classical optimization of scalar replacement of array elements and pointer accesses; this optimization allocates array elements to registers, reducing memory traffic. We generalize the state-of-the-art algorithm, by Carr and Kennedy [CK94], improving it to handle simultaneously both conditional control-flow and inter-iteration data reuse. Our algorithm operates within the same assumptions of the classical one (perfect dependence information), and has the same limitations (increased register pressure). It is, however, optimal in the sense that within each code region where scalar promotion is applied, given sufficient registers, each memory location is read/written at most once.




Usage metrics