Fix integer overflow in instruction scheduling. This can happen if we have