From: Nick Lewycky Date: Sun, 20 Sep 2009 06:27:35 +0000 (+0000) Subject: Correct the comment; this applies to fcmp too. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b13efdafec254746bc83583a10ec3604210d0d35;p=oota-llvm.git Correct the comment; this applies to fcmp too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82380 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index bfa7832072a..e14dd7e9cff 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -710,7 +710,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(LLVMContext &Context, default: break; case Instruction::ICmp: case Instruction::FCmp: - // icmp pred ^ true -> icmp !pred + // cmp pred ^ true -> cmp !pred assert(CI2->equalsInt(1)); CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate(); pred = CmpInst::getInversePredicate(pred);