mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
(re)fix handling of UGT. Pointed out by Nick Lewycky.
llvm-svn: 49991
This commit is contained in:
parent
e038c595c1
commit
3453a89a31
@ -1980,7 +1980,8 @@ SCEVHandle ScalarEvolutionsImpl::ComputeIterationCount(const Loop *L) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ICmpInst::ICMP_UGT: {
|
case ICmpInst::ICMP_UGT: {
|
||||||
SCEVHandle TC = HowFarToZero(SE.getMinusSCEV(LHS, RHS), L);
|
SCEVHandle TC = HowManyLessThans(SE.getNotSCEV(LHS),
|
||||||
|
SE.getNotSCEV(RHS), L, false);
|
||||||
if (!isa<SCEVCouldNotCompute>(TC)) return TC;
|
if (!isa<SCEVCouldNotCompute>(TC)) return TC;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user