1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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 13510f330b
commit cd6475ebe9

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