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:
b8787f3
)
Fix 'fcmp one' constant folding. Noticed by inspection.
author
Nick Lewycky
<nicholas@mxc.ca>
Sun, 30 Jan 2011 01:49:58 +0000
(
01:49
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Sun, 30 Jan 2011 01:49:58 +0000
(
01:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124557
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 8dc2caafe83a4cb4f1b05ec2114d97cbe468231f..f2129c08d2b790ed6337f5881888a56c250f7be3 100644
(file)
--- a/
lib/VMCore/ConstantFold.cpp
+++ b/
lib/VMCore/ConstantFold.cpp
@@
-1958,7
+1958,7
@@
Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred,
else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
Result = 1;
break;
- case
ICmpInst::ICMP_
NE: // We know that C1 != C2
+ case
FCmpInst::FCMP_O
NE: // We know that C1 != C2
// We can only partially decide this relation.
if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
Result = 0;