Correct the comment; this applies to fcmp too.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 06:27:35 +0000 (06:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 06:27:35 +0000 (06:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82380 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ConstantFold.cpp

index bfa7832072a61ae29a91167e751ab5a115335d3b..e14dd7e9cff97809d90886ea2b23fbca88d329d5 100644 (file)
@@ -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);