[Driver] Range-based loop simplification.