compute_loop_info moved into an own file