summaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-20 06:27:35 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-20 06:27:35 +0000
commitb13efdafec254746bc83583a10ec3604210d0d35 (patch)
tree76aa9073277b784700f339c1c4c45a9c92949cc7 /lib/VMCore
parent8577e27dd34f190e7014742822b6d2536ebcc796 (diff)
downloadexternal_llvm-b13efdafec254746bc83583a10ec3604210d0d35.zip
external_llvm-b13efdafec254746bc83583a10ec3604210d0d35.tar.gz
external_llvm-b13efdafec254746bc83583a10ec3604210d0d35.tar.bz2
Correct the comment; this applies to fcmp too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/ConstantFold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index bfa7832..e14dd7e 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -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);