Allowing functions containing loops to be inlined