mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Fix a scalar evolution bug. Reversing everything
does not work because of 0; 2>0 but -2U is also >0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc17ab2bf0
commit
cf363181c1
@ -1980,8 +1980,7 @@ SCEVHandle ScalarEvolutionsImpl::ComputeIterationCount(const Loop *L) {
|
||||
break;
|
||||
}
|
||||
case ICmpInst::ICMP_UGT: {
|
||||
SCEVHandle TC = HowManyLessThans(SE.getNegativeSCEV(LHS),
|
||||
SE.getNegativeSCEV(RHS), L, false);
|
||||
SCEVHandle TC = HowFarToZero(SE.getMinusSCEV(LHS, RHS), L);
|
||||
if (!isa<SCEVCouldNotCompute>(TC)) return TC;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user