mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbb38f2f67
commit
0d5bae41fb
@ -2632,7 +2632,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) {
|
|||||||
APInt Max = APIntOps::umax(StartRange.getUnsignedMax(),
|
APInt Max = APIntOps::umax(StartRange.getUnsignedMax(),
|
||||||
EndRange.getUnsignedMax());
|
EndRange.getUnsignedMax());
|
||||||
if (Min.isMinValue() && Max.isMaxValue())
|
if (Min.isMinValue() && Max.isMaxValue())
|
||||||
return ConstantRange(Min.getBitWidth(), /*isFullSet=*/true);
|
return FullSet;
|
||||||
return ConstantRange(Min, Max+1);
|
return ConstantRange(Min, Max+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user