Floating IF’s
IF statements that do not change from iteration to iteration may be moved out of the loop.
Compilers can usually do this except when
Loops contain calls to procedures
Variable bounded loops
Complex loops
Previous slide
Next slide
Back to first slide
View graphic version