summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LazyValueInfo.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-17 23:04:08 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-17 23:04:08 +0000
commit097e37da0ea0800be7e51c2857014eeb6287eb30 (patch)
treedf39fed11142f8e6c9392b10dc5382934c8f95dc /llvm/lib/Analysis/LazyValueInfo.cpp
parent58b844aebfe73df269ec687993de25bf28b9894c (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud