From: Chris Lattner Date: Tue, 3 Sep 2002 23:12:40 +0000 (+0000) Subject: Minor bug fix. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20d4129fefb07f6c5619045372ebe7a9f5c139e1;p=oota-llvm.git Minor bug fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ConstantRange.cpp b/lib/Analysis/ConstantRange.cpp index bda4a83f159..b7ef5e05110 100644 --- a/lib/Analysis/ConstantRange.cpp +++ b/lib/Analysis/ConstantRange.cpp @@ -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; } } diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index bda4a83f159..b7ef5e05110 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -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; } } diff --git a/lib/VMCore/ConstantRange.cpp b/lib/VMCore/ConstantRange.cpp index bda4a83f159..b7ef5e05110 100644 --- a/lib/VMCore/ConstantRange.cpp +++ b/lib/VMCore/ConstantRange.cpp @@ -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; } } diff --git a/support/lib/Support/ConstantRange.cpp b/support/lib/Support/ConstantRange.cpp index bda4a83f159..b7ef5e05110 100644 --- a/support/lib/Support/ConstantRange.cpp +++ b/support/lib/Support/ConstantRange.cpp @@ -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; } }