From cd6475ebe930231f9de3c273cb12733b5ba26bbe Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 20 Sep 2009 06:27:35 +0000 Subject: [PATCH] Correct the comment; this applies to fcmp too. llvm-svn: 82380 --- lib/VMCore/ConstantFold.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);