diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 06:27:35 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 06:27:35 +0000 |
commit | b13efdafec254746bc83583a10ec3604210d0d35 (patch) | |
tree | 76aa9073277b784700f339c1c4c45a9c92949cc7 /lib/VMCore/ConstantFold.cpp | |
parent | 8577e27dd34f190e7014742822b6d2536ebcc796 (diff) |
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/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index bfa7832072..e14dd7e9cf 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); |