minor simplification in the call to ConstantRange constructor
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 17 May 2012 23:04:08 +0000 (23:04 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 17 May 2012 23:04:08 +0000 (23:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LazyValueInfo.cpp

index 5ca2746c9f6a6c76e86fa9fb9091d12e5dedaf1e..83e021295bad041f293863d96a0e0093854b7eee 100644 (file)
@@ -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);