git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253224
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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")