summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-01-30 01:49:58 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-01-30 01:49:58 +0000
commitc15dd6f07c750d261bb25d411243f80d06d2badb (patch)
tree21e0bf1718149af0b0d7e102e108ec101f653acd
parent7c75f0c03172d87da40f89aeb2077a7068069d6a (diff)
downloadbcm5719-llvm-c15dd6f07c750d261bb25d411243f80d06d2badb.tar.gz
bcm5719-llvm-c15dd6f07c750d261bb25d411243f80d06d2badb.zip
Fix 'fcmp one' constant folding. Noticed by inspection.
llvm-svn: 124557
-rw-r--r--llvm/lib/VMCore/ConstantFold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp
index 8dc2caafe83..f2129c08d2b 100644
--- a/llvm/lib/VMCore/ConstantFold.cpp
+++ b/llvm/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_ONE: // We know that C1 != C2
// We can only partially decide this relation.
if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
Result = 0;
OpenPOWER on IntegriCloud