Correct the comment; this applies to fcmp too.

llvm-svn: 82380
This commit is contained in:
Nick Lewycky 2009-09-20 06:27:35 +00:00
parent 0f8348e85b
commit ff550aa36d
1 changed files with 1 additions and 1 deletions

View 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);