diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-11 22:13:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-11 22:13:11 +0000 |
commit | b64cf896f8c6648b2c2bce15107d2892b909f367 (patch) | |
tree | 0b335412e1eb57052fb97704a6ce5a724e9db103 | |
parent | bc7129f9dbc6651407134e80a4202adc2ef2511c (diff) | |
download | external_llvm-b64cf896f8c6648b2c2bce15107d2892b909f367.zip external_llvm-b64cf896f8c6648b2c2bce15107d2892b909f367.tar.gz external_llvm-b64cf896f8c6648b2c2bce15107d2892b909f367.tar.bz2 |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100994 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 44aa508..f8b2d78 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -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()) { |