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:
parent
13510f330b
commit
cd6475ebe9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user