mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Revert r139126 due to selfhost failures reported by buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5184,12 +5184,8 @@ ScalarEvolution::HowFarToZero(const SCEV *V, const Loop *L) {
|
||||
// Handle unitary steps, which cannot wraparound.
|
||||
// 1*N = -Start; -1*N = Start (mod 2^BW), so:
|
||||
// N = Distance (as unsigned)
|
||||
if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) {
|
||||
ConstantRange CR = getUnsignedRange(Start);
|
||||
const SCEV *MaxBECount = getConstant(CountDown ? CR.getUnsignedMax()
|
||||
: ~CR.getUnsignedMin());
|
||||
return ExitLimit(Distance, MaxBECount);
|
||||
}
|
||||
if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue())
|
||||
return Distance;
|
||||
|
||||
// If the recurrence is known not to wraparound, unsigned divide computes the
|
||||
// back edge count. We know that the value will either become zero (and thus
|
||||
|
||||
Reference in New Issue
Block a user