diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-17 23:04:08 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-17 23:04:08 +0000 |
commit | 097e37da0ea0800be7e51c2857014eeb6287eb30 (patch) | |
tree | df39fed11142f8e6c9392b10dc5382934c8f95dc /llvm/lib/Analysis/LazyValueInfo.cpp | |
parent | 58b844aebfe73df269ec687993de25bf28b9894c (diff) | |
download | bcm5719-llvm-097e37da0ea0800be7e51c2857014eeb6287eb30.tar.gz bcm5719-llvm-097e37da0ea0800be7e51c2857014eeb6287eb30.zip |
minor simplification in the call to ConstantRange constructor
llvm-svn: 157024
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/LazyValueInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp index 5ca2746c9f6..83e021295ba 100644 --- a/llvm/lib/Analysis/LazyValueInfo.cpp +++ b/llvm/lib/Analysis/LazyValueInfo.cpp @@ -818,7 +818,7 @@ bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom, ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1)); if (CI && (ICI->getOperand(0) == Val || NegOffset)) { // Calculate the range of values that would satisfy the comparison. - ConstantRange CmpRange(CI->getValue(), CI->getValue()+1); + ConstantRange CmpRange(CI->getValue()); ConstantRange TrueValues = ConstantRange::makeICmpRegion(ICI->getPredicate(), CmpRange); |