forked from OSchip/llvm-project
minor simplification in the call to ConstantRange constructor
llvm-svn: 157024
This commit is contained in:
parent
58b844aebf
commit
097e37da0e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue