Minor code simplification.

llvm-svn: 100994
This commit is contained in:
Dan Gohman 2010-04-11 22:13:11 +00:00
parent 07d134b751
commit f73ed98d56

View File

@ -2922,8 +2922,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) {
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(AddRec->getStart()))
if (!C->isZero())
ConservativeResult =
ConstantRange(C->getValue()->getValue(),
APInt(getTypeSizeInBits(C->getType()), 0));
ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0));
// TODO: non-affine addrec
if (AddRec->isAffine()) {