mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
(re)fix handling of UGT. Pointed out by Nick Lewycky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3eaee31393
commit
a0c8fc6f28
@ -1980,7 +1980,8 @@ SCEVHandle ScalarEvolutionsImpl::ComputeIterationCount(const Loop *L) {
|
||||
break;
|
||||
}
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user