Fix a small typeo in my checkin last night that broke vortex and other programs :(
authorChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2004 21:46:42 +0000 (21:46 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2004 21:46:42 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11774 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 74283759a14db06660bd8ef2b1e72bead79fcc3a..0b4716399700b0cf65f7cf718bc62d8e67ff6a02 100644 (file)
@@ -1398,7 +1398,7 @@ Instruction *InstCombiner::visitSetCondInst(BinaryOperator &I) {
             else if (I.getOpcode() == Instruction::SetGT &&
                      cast<ConstantSInt>(CI)->getValue() == -1)
               // X > -1  => x < 128
-              return BinaryOperator::create(Instruction::SetGT, CastOp,
+              return BinaryOperator::create(Instruction::SetLT, CastOp,
                          ConstantUInt::get(SrcTy, 1ULL << (SrcTySize*8-1)));
           } else {
             ConstantUInt *CUI = cast<ConstantUInt>(CI);