Optimized code generation related to simple cases of do: