mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Minor code simplification.
llvm-svn: 100994
This commit is contained in:
parent
07d134b751
commit
f73ed98d56
@ -2922,8 +2922,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) {
|
|||||||
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(AddRec->getStart()))
|
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(AddRec->getStart()))
|
||||||
if (!C->isZero())
|
if (!C->isZero())
|
||||||
ConservativeResult =
|
ConservativeResult =
|
||||||
ConstantRange(C->getValue()->getValue(),
|
ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0));
|
||||||
APInt(getTypeSizeInBits(C->getType()), 0));
|
|
||||||
|
|
||||||
// TODO: non-affine addrec
|
// TODO: non-affine addrec
|
||||||
if (AddRec->isAffine()) {
|
if (AddRec->isAffine()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user