]> granicus.if.org Git - clang/commit
@llvm.sqrt isn't really close enough to C's sqrt to justify emitting calls
authorJohn McCall <rjmccall@apple.com>
Wed, 7 Apr 2010 08:20:20 +0000 (08:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 7 Apr 2010 08:20:20 +0000 (08:20 +0000)
commitbeb41281f8355caa05700d0a77539defbdf428f8
tree2590732ec5274160f2fab454e74345bdc1a78885
parentfc1a9c312d249a2c7458f763f848ba42685c23f8
@llvm.sqrt isn't really close enough to C's sqrt to justify emitting calls
to the intrinsic, even when math-errno is off.

Fixes rdar://problem/7828230 by falling back on the library function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100613 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/libcalls.c