[llvm] r253224 - [SimplifyLibCalls] Generalize a comment. This doesn't apply only to sqrt.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 08:54:29 PST 2015


Author: davide
Date: Mon Nov 16 10:54:28 2015
New Revision: 253224

URL: http://llvm.org/viewvc/llvm-project?rev=253224&view=rev
Log:
[SimplifyLibCalls] Generalize a comment. This doesn't apply only to sqrt.


Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp?rev=253224&r1=253223&r2=253224&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp Mon Nov 16 10:54:28 2015
@@ -116,8 +116,8 @@ static bool canUseUnsafeFPMath(Function
   // 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")




More information about the llvm-commits mailing list