In this method, we invoke SimplifyICmpOperands which takes the Cond predicate
by reference and may change it along with LHS and RHS SCEVs. But then we invoke
computeShiftCompareExitLimit with Values from which the SCEVs have been derived,
these Values have not been modified while Cond could be.
One of possible outcomes of this is that we may falsely prove that an infinite loop ends
within some finite number of iterations.
In this patch, we save the original Cond and pass it along with original operands.
This logic may be removed in future once computeShiftCompareExitLimit works
with SCEVs instead of value operands.
If possible, I'd suggest also cleaning this up a bit -- the variable should be called Pred and not Cond (a later NFC change is fine).
Also, how about making OriginalCond const so that it obviously can't be modified?