[llvm-commits] [llvm] r157024 - /llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Nuno Lopes
nunoplopes at sapo.pt
Thu May 17 16:04:08 PDT 2012
Author: nlopes
Date: Thu May 17 18:04:08 2012
New Revision: 157024
URL: http://llvm.org/viewvc/llvm-project?rev=157024&view=rev
Log:
minor simplification in the call to ConstantRange constructor
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=157024&r1=157023&r2=157024&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Thu May 17 18:04:08 2012
@@ -818,7 +818,7 @@
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);
More information about the llvm-commits
mailing list