Single-dimension software pipelining for multidimensional loops