projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8577e27
)
Correct the comment; this applies to fcmp too.
author
Nick Lewycky
<nicholas@mxc.ca>
Sun, 20 Sep 2009 06:27:35 +0000
(06:27 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Sun, 20 Sep 2009 06:27:35 +0000
(06:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82380
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/ConstantFold.cpp
b/lib/VMCore/ConstantFold.cpp
index bfa7832072a61ae29a91167e751ab5a115335d3b..e14dd7e9cff97809d90886ea2b23fbca88d329d5 100644
(file)
--- 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 -> i
cmp !pred
+ //
cmp pred ^ true ->
cmp !pred
assert(CI2->equalsInt(1));
CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();
pred = CmpInst::getInversePredicate(pred);