mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-21 12:38:45 +00:00
minor simplification in the call to ConstantRange constructor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5429a6b0d5
commit
97f87abbf4
@ -818,7 +818,7 @@ bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom,
|
|||||||
ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1));
|
ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1));
|
||||||
if (CI && (ICI->getOperand(0) == Val || NegOffset)) {
|
if (CI && (ICI->getOperand(0) == Val || NegOffset)) {
|
||||||
// Calculate the range of values that would satisfy the comparison.
|
// Calculate the range of values that would satisfy the comparison.
|
||||||
ConstantRange CmpRange(CI->getValue(), CI->getValue()+1);
|
ConstantRange CmpRange(CI->getValue());
|
||||||
ConstantRange TrueValues =
|
ConstantRange TrueValues =
|
||||||
ConstantRange::makeICmpRegion(ICI->getPredicate(), CmpRange);
|
ConstantRange::makeICmpRegion(ICI->getPredicate(), CmpRange);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user