aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-04-10 08:23:07 +0000
committerDuncan Sands <baldrick@free.fr>2012-04-10 08:23:07 +0000
commit8250016fb9491fcfde7fce05230d66e267944484 (patch)
tree9140b62c2c03c670521fbd2c26fcb2024e6dca06 /lib/CodeGen/CGExprScalar.cpp
parent2b124ea9d2c27c6d002ecd4623f6321e305d907e (diff)
Express the number of ULPs in fpaccuracy metadata as a real rather than a
rational number, eg as 2.5 rather than 5, 2. OK'd by Peter Collingbourne. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 5723541c62..18891f7492 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -1807,7 +1807,7 @@ Value *ScalarExprEmitter::EmitDiv(const BinOpInfo &Ops) {
if (ValTy->isFloatTy() ||
(isa<llvm::VectorType>(ValTy) &&
cast<llvm::VectorType>(ValTy)->getElementType()->isFloatTy()))
- CGF.SetFPAccuracy(Val, 5, 2);
+ CGF.SetFPAccuracy(Val, 2.5);
}
return Val;
}