2. Combining Loops
Goal: Avoid spending overhead on two separate loops
Identify operations that are repeated in both loops
Combine the two loops so that those operations are only performed once
Allows better re-use of intermediate results
Previous slide
Next slide
Back to first slide
View graphic version