loop combination
loop combination
In horizontal loop combination the bodies of the loops arelargely independent so only the loop overhead is saved.Vertical loop combination applies where the results of thefirst loop are used by the second. Combining the two allowsthe intermediate results to be used immediately (inregisters) rather than requiring them to be stored in anarray.
The functional equivalent of horizontal and vertical loopcombination are tupling and fusion.