[llvm-commits] Patch for pr12559: mark missing math LibCalls as unavailable on win32; fix SimplifyLibCalls to use TLI for floor etc.

Joe Groff arcata at gmail.com
Sat Apr 14 16:09:25 PDT 2012


Hi everyone. Attached is a patch that fixes PR12559 on Windows. The
Win32 CRT does not provide real entry points for single-precision math
functions such as sqrtf, but instead implements them as macros in
math.h. This patch marks sqrtf etc. as unavailable (along with the C99
math functions not provided on Windows) to prevent libcall
optimizations from attempting to use them for Win32 targets. I also
updated some crufty-looking #ifdefs in SimplifyLibCalls into
TargetLibraryInfo checks and fixed some typos. Let me know if you
recommend any additional changes. Thanks.

-Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-pr12559.diff
Type: application/octet-stream
Size: 6062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120414/de3e9697/attachment.obj>


More information about the llvm-commits mailing list