mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 21:20:29 +00:00
Minor bug fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
252030e86b
commit
20d4129fef
@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
|
|||||||
Upper = C;
|
Upper = C;
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGT:
|
case Instruction::SetGT:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = Next(C);
|
Lower = Next(C);
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
case Instruction::SetLE:
|
case Instruction::SetLE:
|
||||||
Lower = ConstantIntegral::getMinValue(C->getType());
|
Lower = ConstantIntegral::getMinValue(C->getType());
|
||||||
Upper = Next(C);
|
Upper = Next(C);
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGE:
|
case Instruction::SetGE:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = C;
|
Lower = C;
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
|
|||||||
Upper = C;
|
Upper = C;
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGT:
|
case Instruction::SetGT:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = Next(C);
|
Lower = Next(C);
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
case Instruction::SetLE:
|
case Instruction::SetLE:
|
||||||
Lower = ConstantIntegral::getMinValue(C->getType());
|
Lower = ConstantIntegral::getMinValue(C->getType());
|
||||||
Upper = Next(C);
|
Upper = Next(C);
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGE:
|
case Instruction::SetGE:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = C;
|
Lower = C;
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
|
|||||||
Upper = C;
|
Upper = C;
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGT:
|
case Instruction::SetGT:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = Next(C);
|
Lower = Next(C);
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
case Instruction::SetLE:
|
case Instruction::SetLE:
|
||||||
Lower = ConstantIntegral::getMinValue(C->getType());
|
Lower = ConstantIntegral::getMinValue(C->getType());
|
||||||
Upper = Next(C);
|
Upper = Next(C);
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGE:
|
case Instruction::SetGE:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = C;
|
Lower = C;
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
|
|||||||
Upper = C;
|
Upper = C;
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGT:
|
case Instruction::SetGT:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = Next(C);
|
Lower = Next(C);
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
case Instruction::SetLE:
|
case Instruction::SetLE:
|
||||||
Lower = ConstantIntegral::getMinValue(C->getType());
|
Lower = ConstantIntegral::getMinValue(C->getType());
|
||||||
Upper = Next(C);
|
Upper = Next(C);
|
||||||
return;
|
return;
|
||||||
case Instruction::SetGE:
|
case Instruction::SetGE:
|
||||||
Upper = ConstantIntegral::getMaxValue(C->getType());
|
|
||||||
Lower = C;
|
Lower = C;
|
||||||
|
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user