LoopPredication might be able to turn such checks (which are not necessarily are done on IV) into loop invariant checks.