summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-11-16 16:54:28 +0000
committerDavide Italiano <davide@freebsd.org>2015-11-16 16:54:28 +0000
commited5cc95d2297f9a7c12ea6a4fd3c517c5bc9dfac (patch)
treee9fae0cb964a62f2846c8309e74926f6d1225100
parenta9197737f97ec8a07f992bba986abb72c7eef1ea (diff)
downloadbcm5719-llvm-ed5cc95d2297f9a7c12ea6a4fd3c517c5bc9dfac.tar.gz
bcm5719-llvm-ed5cc95d2297f9a7c12ea6a4fd3c517c5bc9dfac.zip
[SimplifyLibCalls] Generalize a comment. This doesn't apply only to sqrt.
llvm-svn: 253224
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 8ea632546c7..144e23522c1 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -116,8 +116,8 @@ static bool canUseUnsafeFPMath(Function *F) {
// FIXME: For finer-grain optimization, we need intrinsics to have the same
// fast-math flag decorations that are applied to FP instructions. For now,
// we have to rely on the function-level unsafe-fp-math attribute to do this
- // optimization because there's no other way to express that the sqrt can be
- // reassociated.
+ // optimization because there's no other way to express that the call can be
+ // relaxed.
if (F->hasFnAttribute("unsafe-fp-math")) {
Attribute Attr = F->getFnAttribute("unsafe-fp-math");
if (Attr.getValueAsString() == "true")
OpenPOWER on IntegriCloud