git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100994
91177308-0d34-0410-b5e6-
96231b3b80d8
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(AddRec->getStart()))
if (!C->isZero())
ConservativeResult =
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()) {
// TODO: non-affine addrec
if (AddRec->isAffine()) {