SimplifyLibCalls: When emitting an overloaded fp function check that it's available.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 31 Aug 2013 18:19:35 +0000 (18:19 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 31 Aug 2013 18:19:35 +0000 (18:19 +0000)
commitbc870037f66cc2e9096241c573bf1b7211fccf7b
treef9aa1247eae479103fd32384fb983f65fb7b7838
parentc94e7b50c36ce866772e269f1541f49cbf114d27
SimplifyLibCalls: When emitting an overloaded fp function check that it's available.

The existing code missed some edge cases when e.g. we're going to emit sqrtf but
only the availability of sqrt was checked. This happens on odd platforms like
windows.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189724 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/win-math.ll