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:
Chris Lattner 2002-09-03 23:12:40 +00:00
parent 252030e86b
commit 20d4129fef
4 changed files with 8 additions and 8 deletions

View File

@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
Upper = C;
return;
case Instruction::SetGT:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = Next(C);
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
case Instruction::SetLE:
Lower = ConstantIntegral::getMinValue(C->getType());
Upper = Next(C);
return;
case Instruction::SetGE:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = C;
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
}
}

View File

@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
Upper = C;
return;
case Instruction::SetGT:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = Next(C);
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
case Instruction::SetLE:
Lower = ConstantIntegral::getMinValue(C->getType());
Upper = Next(C);
return;
case Instruction::SetGE:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = C;
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
}
}

View File

@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
Upper = C;
return;
case Instruction::SetGT:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = Next(C);
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
case Instruction::SetLE:
Lower = ConstantIntegral::getMinValue(C->getType());
Upper = Next(C);
return;
case Instruction::SetGE:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = C;
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
}
}

View File

@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
Upper = C;
return;
case Instruction::SetGT:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = Next(C);
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
case Instruction::SetLE:
Lower = ConstantIntegral::getMinValue(C->getType());
Upper = Next(C);
return;
case Instruction::SetGE:
Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = C;
Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
}
}