Generate unrolled loop at runtime.