[llvm-commits] [llvm] r82380 - /llvm/trunk/lib/VMCore/ConstantFold.cpp
Nick Lewycky
nicholas at mxc.ca
Sat Sep 19 23:27:35 PDT 2009
Author: nicholas
Date: Sun Sep 20 01:27:35 2009
New Revision: 82380
URL: http://llvm.org/viewvc/llvm-project?rev=82380&view=rev
Log:
Correct the comment; this applies to fcmp too.
Modified:
llvm/trunk/lib/VMCore/ConstantFold.cpp
Modified: llvm/trunk/lib/VMCore/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantFold.cpp?rev=82380&r1=82379&r2=82380&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ConstantFold.cpp (original)
+++ llvm/trunk/lib/VMCore/ConstantFold.cpp Sun Sep 20 01:27:35 2009
@@ -710,7 +710,7 @@
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);
More information about the llvm-commits
mailing list